From a0ecb8ff5240fb99753f73d37712db06e3d6c8d5 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 13 May 2021 22:15:21 +0300 Subject: [PATCH] handler: suppress exhaustive linter --- api/handler/head.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handler/head.go b/api/handler/head.go index fdbb00bd..c805ad97 100644 --- a/api/handler/head.go +++ b/api/handler/head.go @@ -109,7 +109,7 @@ func (h *handler) HeadBucketHandler(w http.ResponseWriter, r *http.Request) { code := http.StatusBadRequest if st, ok := status.FromError(err); ok && st != nil { - switch st.Code() { + switch st.Code() { //nolint:exhaustive // we have default value set above case codes.NotFound: code = http.StatusNotFound case codes.PermissionDenied: