Merge pull request #231 from stevvooe/remove-unnecessary-close
Remove unnecessary close in client
This commit is contained in:
commit
f258df6e6b
@ -283,7 +283,6 @@ func (r *clientImpl) BlobLength(name string, dgst digest.Digest) (int, error) {
|
||||
}
|
||||
return -1, &errs
|
||||
default:
|
||||
response.Body.Close()
|
||||
return -1, &UnexpectedHTTPStatusError{Status: response.Status}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user