diff --git a/internal/pushgateway/client.go b/internal/pushgateway/client.go index 9b7e77b35..49907cee8 100644 --- a/internal/pushgateway/client.go +++ b/internal/pushgateway/client.go @@ -48,6 +48,8 @@ func (h *httpClient) Notify(ctx context.Context, url string, req *NotifyRequest, if err != nil { return err } + + //nolint:errcheck defer hresp.Body.Close() if hresp.StatusCode == http.StatusOK {