diff --git a/registry/client/client.go b/registry/client/client.go index 8e868c41..36be960d 100644 --- a/registry/client/client.go +++ b/registry/client/client.go @@ -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} } }