1
0
mirror of https://github.com/Luzifer/named-blacklist.git synced 2024-09-19 00:02:59 +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)
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
default: