From 004851f65153fab41783390c76c04fe33c93a128 Mon Sep 17 00:00:00 2001 From: makeworld Date: Thu, 23 Dec 2021 14:20:50 -0500 Subject: [PATCH] Lint fixes --- client/client.go | 2 ++ display/subscriptions.go | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index 6f9b1df..f4c4e93 100644 --- a/client/client.go +++ b/client/client.go @@ -48,6 +48,7 @@ func Init() error { // in the config pu, _ := normalizeURL(FixUserURL(certURL)) if pu == nil { + //nolint:goerr113 return errors.New("[auth.certs]: couldn't normalize URL: " + certURL) } confCerts[certMapKey{pu.Host, pu.Path}] = certsViper.GetString(certURL) @@ -57,6 +58,7 @@ func Init() error { for _, keyURL := range keysViper.AllKeys() { pu, _ := normalizeURL(FixUserURL(keyURL)) if pu == nil { + //nolint:goerr113 return errors.New("[auth.keys]: couldn't normalize URL: " + keyURL) } confKeys[certMapKey{pu.Host, pu.Path}] = keysViper.GetString(keyURL) diff --git a/display/subscriptions.go b/display/subscriptions.go index 106f3d0..bc00efa 100644 --- a/display/subscriptions.go +++ b/display/subscriptions.go @@ -98,7 +98,8 @@ func Subscriptions(t *tab, u string) string { // Render page if viper.GetBool("subscriptions.header") { - rawPage += "You can use Ctrl-X to subscribe to a page, or to an Atom/RSS/JSON feed. See the online wiki for more.\n" + + rawPage += "You can use Ctrl-X to subscribe to a page, or to an Atom/RSS/JSON feed." + + "See the online wiki for more.\n" + "If you just opened Amfora then updates may appear incrementally. Reload the page to see them.\n\n" } rawPage += "=> about:manage-subscriptions Manage subscriptions\n\n"