Fix a golangci-lint issue.

This commit is contained in:
Tommie Gannert 2022-05-27 19:37:41 +02:00
parent 9292bb42c1
commit d351a48379

View file

@ -200,7 +200,7 @@ func httpDo(ctx context.Context, hc *http.Client, req *http.Request) (*http.Resp
}
if resp.StatusCode/100 != 2 {
defer resp.Body.Close()
defer resp.Body.Close() // nolint:errcheck
contentType := resp.Header.Get("Content-Type")
switch {