Remove duplicate switch case (#6966)

Fixes #6948
This commit is contained in:
Nitish Tiwari 2018-12-14 11:28:48 +05:30 committed by kannappanr
parent c2ed1347d9
commit 324834e4da

View File

@ -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],