Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
remove close
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshkshah1992 committed Jul 26, 2023
1 parent b3edbd3 commit 6d91290
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ func (p *pool) fetchResource(ctx context.Context, from string, resource string,
err = cb(resource, &wrapped)
received = wrapped.len
if err != nil {
resp.Body.Close()
if recordIfContextErr(resourceType, reqCtx, "read-http-response") {
if errors.Is(err, context.Canceled) {
return rm, reqCtx.Err()
Expand Down

0 comments on commit 6d91290

Please sign in to comment.