mirror of
https://github.com/makew0rld/amfora.git
synced 2024-11-23 14:19:12 +03:00
Lint fixes
This commit is contained in:
parent
7318283aef
commit
004851f651
@ -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)
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user