1
0
Fork 0
mirror of https://github.com/Luzifer/named-blacklist.git synced 2024-11-09 16:00:09 +00:00

Lint: "Fix error reported by linter

This commit is contained in:
Knut Ahlers 2019-08-25 20:41:25 +02:00
parent 0ef16ac8f1
commit 5c4dcd5bf8
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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: