From b89da40cbdad0cf48e4ff6f113ec48e73917ef06 Mon Sep 17 00:00:00 2001 From: Piotr Kozimor Date: Mon, 6 Dec 2021 13:59:23 +0100 Subject: [PATCH] Ignore body.Close() error check --- internal/pushgateway/client.go | 2 ++ 1 file changed, 2 insertions(+) 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 {