mirror of
https://github.com/distribution/distribution.git
synced 2025-09-20 18:50:00 +00:00
Add missing defer on Tags
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
@@ -99,6 +99,7 @@ func (ms *manifests) Tags() ([]string, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
defer resp.Body.Close()
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case resp.StatusCode == http.StatusOK:
|
case resp.StatusCode == http.StatusOK:
|
||||||
|
Reference in New Issue
Block a user