Ignore body.Close() error check

This commit is contained in:
Piotr Kozimor 2021-12-06 13:59:23 +01:00
parent 5ccfe77cea
commit b89da40cbd

View file

@ -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 {