From 324834e4dacf8c830a06521e826ed6cb110f2081 Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Fri, 14 Dec 2018 11:28:48 +0530 Subject: [PATCH] Remove duplicate switch case (#6966) Fixes #6948 --- cmd/object-api-errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/object-api-errors.go b/cmd/object-api-errors.go index 035737c91..b0f7aca4d 100644 --- a/cmd/object-api-errors.go +++ b/cmd/object-api-errors.go @@ -47,7 +47,7 @@ func toObjectErr(err error, params ...string) error { Object: params[1], } } - case errIsNotRegular, errFileAccessDenied: + case errIsNotRegular: if len(params) >= 2 { err = ObjectExistsAsDirectory{ Bucket: params[0],