1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-06-19 19:25:24 +00:00

🚨 Fix lint issues

This commit is contained in:
makeworld 2020-09-01 16:30:06 -04:00
parent 1d3e309556
commit e1dc0a0ccd
2 changed files with 5 additions and 4 deletions

View File

@ -41,3 +41,6 @@ linters-settings:
gocritic:
disabled-checks:
- ifElseChain
goconst:
# minimal length of string constant, 3 by default
min-len: 5

View File

@ -347,9 +347,8 @@ func handleURL(t *tab, u string, numRedirects int) (string, bool) {
// No proxy available
handleHTTP(u, true)
return ret("", false)
} else {
usingProxy = true
}
usingProxy = true
}
if !strings.HasPrefix(u, "http") && !strings.HasPrefix(u, "gemini") {
@ -358,9 +357,8 @@ func handleURL(t *tab, u string, numRedirects int) (string, bool) {
// No proxy available
handleOther(u)
return ret("", false)
} else {
usingProxy = true
}
usingProxy = true
}
// Gemini URL, or one with a Gemini proxy available