mirror of
https://github.com/makeworld-the-better-one/amfora.git
synced 2024-11-22 15:46:51 +03:00
🚨 Fix lint issues
This commit is contained in:
parent
1d3e309556
commit
e1dc0a0ccd
@ -41,3 +41,6 @@ linters-settings:
|
||||
gocritic:
|
||||
disabled-checks:
|
||||
- ifElseChain
|
||||
goconst:
|
||||
# minimal length of string constant, 3 by default
|
||||
min-len: 5
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user