mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-31 10:43:10 -06:00
Ignore body.Close() error check
This commit is contained in:
parent
5ccfe77cea
commit
b89da40cbd
|
|
@ -48,6 +48,8 @@ func (h *httpClient) Notify(ctx context.Context, url string, req *NotifyRequest,
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:errcheck
|
||||||
defer hresp.Body.Close()
|
defer hresp.Body.Close()
|
||||||
|
|
||||||
if hresp.StatusCode == http.StatusOK {
|
if hresp.StatusCode == http.StatusOK {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue