mirror of
https://github.com/pgsty/minio.git
synced 2026-08-08 07:13:31 +03:00
cleanup ignored static analysis (#16767)
This commit is contained in:
@@ -109,8 +109,7 @@ func parseCredentialHeader(credElement string, region string, stype serviceType)
|
||||
return ch, ErrAuthorizationHeaderMalformed
|
||||
}
|
||||
if credElements[2] != string(stype) {
|
||||
switch stype {
|
||||
case serviceSTS:
|
||||
if stype == serviceSTS {
|
||||
return ch, ErrInvalidServiceSTS
|
||||
}
|
||||
return ch, ErrInvalidServiceS3
|
||||
|
||||
Reference in New Issue
Block a user