diff --git a/clientapi/auth/sso/oauth2.go b/clientapi/auth/sso/oauth2.go index cd6186938..82abd9c6b 100644 --- a/clientapi/auth/sso/oauth2.go +++ b/clientapi/auth/sso/oauth2.go @@ -200,7 +200,7 @@ func httpDo(ctx context.Context, hc *http.Client, req *http.Request) (*http.Resp } if resp.StatusCode/100 != 2 { - defer resp.Body.Close() + defer resp.Body.Close() // nolint:errcheck contentType := resp.Header.Get("Content-Type") switch {