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:
parent
1d3e309556
commit
e1dc0a0ccd
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user