mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Remove duplicate error in switch case. (#7381)
Fixes: #7380 crypto.ErrInvalidCustomerKey was being handled twice in toAPIErrorCode()
This commit is contained in:
@@ -1507,8 +1507,6 @@ func toAPIErrorCode(ctx context.Context, err error) (apiErr APIErrorCode) {
|
||||
apiErr = ErrInvalidEncryptionMethod
|
||||
case crypto.ErrInvalidCustomerAlgorithm:
|
||||
apiErr = ErrInvalidSSECustomerAlgorithm
|
||||
case crypto.ErrInvalidCustomerKey:
|
||||
apiErr = ErrInvalidSSECustomerKey
|
||||
case crypto.ErrMissingCustomerKey:
|
||||
apiErr = ErrMissingSSECustomerKey
|
||||
case crypto.ErrMissingCustomerKeyMD5:
|
||||
|
||||
Reference in New Issue
Block a user