From 1a10bcc0791f862983c3e3ae36f0cb73e29db267 Mon Sep 17 00:00:00 2001 From: gIthuriel Date: Tue, 22 Jun 2021 09:37:52 -0700 Subject: [PATCH] Update aws.go --- google/internal/externalaccount/aws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/internal/externalaccount/aws.go b/google/internal/externalaccount/aws.go index 554c8f8..76af147 100644 --- a/google/internal/externalaccount/aws.go +++ b/google/internal/externalaccount/aws.go @@ -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 }