handler: suppress exhaustive linter

This commit is contained in:
Roman Khimov 2021-05-13 22:15:21 +03:00
parent b851889934
commit a0ecb8ff52

View file

@ -109,7 +109,7 @@ func (h *handler) HeadBucketHandler(w http.ResponseWriter, r *http.Request) {
code := http.StatusBadRequest code := http.StatusBadRequest
if st, ok := status.FromError(err); ok && st != nil { 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: case codes.NotFound:
code = http.StatusNotFound code = http.StatusNotFound
case codes.PermissionDenied: case codes.PermissionDenied: