forked from TrueCloudLab/frostfs-s3-gw
handler: suppress exhaustive linter
This commit is contained in:
parent
b851889934
commit
a0ecb8ff52
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue