mirror of
https://github.com/distribution/distribution.git
synced 2025-09-02 23:45:53 +00:00
Remove unnecessary close in client
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
@@ -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}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user