Remove duplicate switch case (#6966)

Fixes #6948
master
Nitish Tiwari 6 years ago committed by kannappanr
parent c2ed1347d9
commit 324834e4da
  1. 2
      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],

Loading…
Cancel
Save