mirror of
https://github.com/Luzifer/named-blacklist.git
synced 2024-09-19 16:23:00 +00:00
Lint: "Fix error reported by linter
This commit is contained in:
parent
0ef16ac8f1
commit
5c4dcd5bf8
@ -57,7 +57,7 @@ func (p providerDefinition) GetContent() (io.ReadCloser, error) {
|
|||||||
return os.Open(p.File)
|
return os.Open(p.File)
|
||||||
|
|
||||||
case p.URL != "":
|
case p.URL != "":
|
||||||
resp, err := http.Get(p.URL)
|
resp, err := http.Get(p.URL) //nolint:bodyclose // This does not need to be closed here and would break stuff
|
||||||
return resp.Body, err
|
return resp.Body, err
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user