From f36ab5a834cdf9e569e47f4f6e5037a3ade2f711 Mon Sep 17 00:00:00 2001 From: Richard Scothern Date: Fri, 18 Sep 2015 11:26:34 -0700 Subject: [PATCH] Don't return a nil array and a nil error if the Tags endpoint cannot be found Signed-off-by: Richard Scothern --- registry/client/repository.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/registry/client/repository.go b/registry/client/repository.go index 0fcb17dcb..1e189438f 100644 --- a/registry/client/repository.go +++ b/registry/client/repository.go @@ -211,8 +211,6 @@ func (ms *manifests) Tags() ([]string, error) { } return tagsResponse.Tags, nil - } else if resp.StatusCode == http.StatusNotFound { - return nil, nil } return nil, handleErrorResponse(resp) }