Skip to content

Commit 586046f

Browse files
committed
remove body close
Signed-off-by: everettraven <everettraven@gmail.com>
1 parent 5e51907 commit 586046f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/authentication/tripper.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ func (tt *TokenInjectingRoundTripper) RoundTrip(req *http.Request) (*http.Respon
2222
tt.TokenGetter.Delete(tt.Key)
2323
resp, err = tt.do(req)
2424
}
25-
// RoundTrip must always close the response body even on errors.
26-
// For more information see https://pkg.go.dev/net/http#RoundTripper
27-
if resp != nil {
28-
resp.Body.Close()
29-
}
3025
return resp, err
3126
}
3227

0 commit comments

Comments
 (0)