From 81f081f91b1cf1c3c1375cf225de8ee05b00fb6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pereira?= <484633+joaodrp@users.noreply.github.com> Date: Fri, 28 May 2021 10:33:26 +0100 Subject: [PATCH] Group case values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Pereira <484633+joaodrp@users.noreply.github.com> --- registry/handlers/manifests.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/registry/handlers/manifests.go b/registry/handlers/manifests.go index 5a208cddf..8b365c704 100644 --- a/registry/handlers/manifests.go +++ b/registry/handlers/manifests.go @@ -495,8 +495,7 @@ func (imh *manifestHandler) DeleteManifest(w http.ResponseWriter, r *http.Reques tagService := imh.Repository.Tags(imh.Context) if err := tagService.Untag(imh.Context, imh.Tag); err != nil { switch err.(type) { - case distribution.ErrTagUnknown: - case driver.PathNotFoundError: + case distribution.ErrTagUnknown, driver.PathNotFoundError: imh.Errors = append(imh.Errors, v2.ErrorCodeManifestUnknown) default: imh.Errors = append(imh.Errors, errcode.ErrorCodeUnknown)