mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-08 06:33:09 -06:00
Fix a golangci-lint issue.
This commit is contained in:
parent
9292bb42c1
commit
d351a48379
|
|
@ -200,7 +200,7 @@ func httpDo(ctx context.Context, hc *http.Client, req *http.Request) (*http.Resp
|
||||||
}
|
}
|
||||||
|
|
||||||
if resp.StatusCode/100 != 2 {
|
if resp.StatusCode/100 != 2 {
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close() // nolint:errcheck
|
||||||
|
|
||||||
contentType := resp.Header.Get("Content-Type")
|
contentType := resp.Header.Get("Content-Type")
|
||||||
switch {
|
switch {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue