1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-12-04 14:46:29 -05: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: gocritic:
disabled-checks: disabled-checks:
- ifElseChain - 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 // No proxy available
handleHTTP(u, true) handleHTTP(u, true)
return ret("", false) return ret("", false)
} else {
usingProxy = true
} }
usingProxy = true
} }
if !strings.HasPrefix(u, "http") && !strings.HasPrefix(u, "gemini") { 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 // No proxy available
handleOther(u) handleOther(u)
return ret("", false) return ret("", false)
} else {
usingProxy = true
} }
usingProxy = true
} }
// Gemini URL, or one with a Gemini proxy available // Gemini URL, or one with a Gemini proxy available