Update aws.go

This commit is contained in:
gIthuriel 2021-06-22 09:37:52 -07:00 committed by GitHub
parent 9de080890d
commit 1a10bcc079
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ func (cs awsCredentialSource) subjectToken() (string, error) {
func (cs *awsCredentialSource) getRegion() (string, error) {
if envAwsRegion := getenv("AWS_REGION"); envAwsRegion != "" {
return envAwsRegion, nil
} else if envAwsRegion := getenv("AWS_DEFAULT_REGION"); envAwsRegion != "" {
} if envAwsRegion := getenv("AWS_DEFAULT_REGION"); envAwsRegion != "" {
return envAwsRegion, nil
}