Lint fixes

This commit is contained in:
makeworld 2021-12-23 14:20:50 -05:00
parent 7318283aef
commit 004851f651
2 changed files with 4 additions and 1 deletions

View File

@ -48,6 +48,7 @@ func Init() error {
// in the config // in the config
pu, _ := normalizeURL(FixUserURL(certURL)) pu, _ := normalizeURL(FixUserURL(certURL))
if pu == nil { if pu == nil {
//nolint:goerr113
return errors.New("[auth.certs]: couldn't normalize URL: " + certURL) return errors.New("[auth.certs]: couldn't normalize URL: " + certURL)
} }
confCerts[certMapKey{pu.Host, pu.Path}] = certsViper.GetString(certURL) confCerts[certMapKey{pu.Host, pu.Path}] = certsViper.GetString(certURL)
@ -57,6 +58,7 @@ func Init() error {
for _, keyURL := range keysViper.AllKeys() { for _, keyURL := range keysViper.AllKeys() {
pu, _ := normalizeURL(FixUserURL(keyURL)) pu, _ := normalizeURL(FixUserURL(keyURL))
if pu == nil { if pu == nil {
//nolint:goerr113
return errors.New("[auth.keys]: couldn't normalize URL: " + keyURL) return errors.New("[auth.keys]: couldn't normalize URL: " + keyURL)
} }
confKeys[certMapKey{pu.Host, pu.Path}] = keysViper.GetString(keyURL) confKeys[certMapKey{pu.Host, pu.Path}] = keysViper.GetString(keyURL)

View File

@ -98,7 +98,8 @@ func Subscriptions(t *tab, u string) string {
// Render page // Render page
if viper.GetBool("subscriptions.header") { 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" "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" rawPage += "=> about:manage-subscriptions Manage subscriptions\n\n"