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:
parent
0ef16ac8f1
commit
5c4dcd5bf8
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue