Group case values
Signed-off-by: João Pereira <484633+joaodrp@users.noreply.github.com>master
							parent
							
								
									1398d3b5c6
								
							
						
					
					
						commit
						81f081f91b
					
				|  | @ -495,8 +495,7 @@ func (imh *manifestHandler) DeleteManifest(w http.ResponseWriter, r *http.Reques | ||||||
| 		tagService := imh.Repository.Tags(imh.Context) | 		tagService := imh.Repository.Tags(imh.Context) | ||||||
| 		if err := tagService.Untag(imh.Context, imh.Tag); err != nil { | 		if err := tagService.Untag(imh.Context, imh.Tag); err != nil { | ||||||
| 			switch err.(type) { | 			switch err.(type) { | ||||||
| 			case distribution.ErrTagUnknown: | 			case distribution.ErrTagUnknown, driver.PathNotFoundError: | ||||||
| 			case driver.PathNotFoundError: |  | ||||||
| 				imh.Errors = append(imh.Errors, v2.ErrorCodeManifestUnknown) | 				imh.Errors = append(imh.Errors, v2.ErrorCodeManifestUnknown) | ||||||
| 			default: | 			default: | ||||||
| 				imh.Errors = append(imh.Errors, errcode.ErrorCodeUnknown) | 				imh.Errors = append(imh.Errors, errcode.ErrorCodeUnknown) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue