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)