diff --git a/internal/catalogue/catalogue.go b/internal/catalogue/catalogue.go index 61858b09..dfddd7bb 100644 --- a/internal/catalogue/catalogue.go +++ b/internal/catalogue/catalogue.go @@ -128,7 +128,7 @@ func httpGet(raw string) (io.ReadCloser, error) { return nil, err } if resp.StatusCode != http.StatusOK { - resp.Body.Close() + _ = resp.Body.Close() // discarding on the error path; the status error below is what matters return nil, fmt.Errorf("GET %s: status %d", raw, resp.StatusCode) } return resp.Body, nil