Skip to content

Commit bce0382

Browse files
enocomtbpg
authored andcommitted
google: fix syntax error
Change-Id: I18dd98234a87dca59a199d90a5d0b9cedd80e5af Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/330189 Reviewed-by: Cody Oss <codyoss@google.com> Trust: Cody Oss <codyoss@google.com> Trust: Tyler Bui-Palsulich <tbp@google.com> Run-TryBot: Cody Oss <codyoss@google.com> TryBot-Result: Go Bot <gobot@golang.org>
1 parent 14747e6 commit bce0382

File tree

1 file changed

+4
-2
lines changed
  • google/internal/externalaccount

1 file changed

+4
-2
lines changed

‎google/internal/externalaccount/aws.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"encoding/json"
1414
"errors"
1515
"fmt"
16-
"golang.org/x/oauth2"
1716
"io"
1817
"io/ioutil"
1918
"net/http"
@@ -23,6 +22,8 @@ import (
2322
"sort"
2423
"strings"
2524
"time"
25+
26+
"golang.org/x/oauth2"
2627
)
2728

2829
type awsSecurityCredentials struct {
@@ -342,7 +343,8 @@ func (cs awsCredentialSource) subjectToken() (string, error) {
342343
func (cs *awsCredentialSource) getRegion() (string, error) {
343344
if envAwsRegion := getenv("AWS_REGION"); envAwsRegion != "" {
344345
return envAwsRegion, nil
345-
} if envAwsRegion := getenv("AWS_DEFAULT_REGION"); envAwsRegion != "" {
346+
}
347+
if envAwsRegion := getenv("AWS_DEFAULT_REGION"); envAwsRegion != "" {
346348
return envAwsRegion, nil
347349
}
348350

0 commit comments

Comments
 (0)