Add missing defer on Tags

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2015-05-14 10:18:21 -07:00
parent 468c5e79ba
commit fddeb1c8d5

View file

@ -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: