Merge pull request #231 from stevvooe/remove-unnecessary-close

Remove unnecessary close in client
This commit is contained in:
Josh Hawn 2015-03-04 18:19:35 -08:00
commit e249b478d9

View file

@ -283,7 +283,6 @@ func (r *clientImpl) BlobLength(name string, dgst digest.Digest) (int, error) {
} }
return -1, &errs return -1, &errs
default: default:
response.Body.Close()
return -1, &UnexpectedHTTPStatusError{Status: response.Status} return -1, &UnexpectedHTTPStatusError{Status: response.Status}
} }
} }