mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
simplifying if-else chains to switches (#6208)
This commit is contained in:
@@ -478,8 +478,9 @@ func toAdminAPIErrCode(err error) APIErrorCode {
|
||||
switch err {
|
||||
case errXLWriteQuorum:
|
||||
return ErrAdminConfigNoQuorum
|
||||
default:
|
||||
return toAPIErrorCode(err)
|
||||
}
|
||||
return toAPIErrorCode(err)
|
||||
}
|
||||
|
||||
// SetConfigResult - represents detailed results of a set-config
|
||||
|
||||
Reference in New Issue
Block a user