Skip to content

Commit 9bb9049

Browse files
rsccodyoss
authored andcommitted
all: go fmt ./...
Make all our package sources use Go 1.17 gofmt format (adding //go:build lines). Not strictly necessary but will avoid spurious changes as files are edited. Part of //go:build change (#41184). See https://golang.org/design/draft-gobuild Change-Id: I22803ea9e936fbb08984a64155302f47e181de27 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/294420 Trust: Russ Cox <rsc@golang.org> Trust: Cody Oss <codyoss@google.com> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cody Oss <codyoss@google.com>
1 parent ba52d33 commit 9bb9049

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

google/appengine_gen1.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build appengine
56
// +build appengine
67

78
// This file applies to App Engine first generation runtimes (<= Go 1.9).

google/appengine_gen2_flex.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !appengine
56
// +build !appengine
67

78
// This file applies to App Engine second generation runtimes (>= Go 1.11) and App Engine flexible.

google/internal/externalaccount/basecredentials.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (c *Config) TokenSource(ctx context.Context) oauth2.TokenSource {
4545
ctx: ctx,
4646
url: c.ServiceAccountImpersonationURL,
4747
scopes: scopes,
48-
ts: oauth2.ReuseTokenSource(nil, ts),
48+
ts: oauth2.ReuseTokenSource(nil, ts),
4949
}
5050
return oauth2.ReuseTokenSource(nil, imp)
5151
}

google/internal/externalaccount/urlcredsource_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ func TestRetrieveURLSubjectToken_Text(t *testing.T) {
2929
heads := make(map[string]string)
3030
heads["Metadata"] = "True"
3131
cs := CredentialSource{
32-
URL: ts.URL,
33-
Format: format{Type: fileTypeText},
32+
URL: ts.URL,
33+
Format: format{Type: fileTypeText},
3434
Headers: heads,
3535
}
3636
tfc := testFileConfig

internal/client_appengine.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build appengine
56
// +build appengine
67

78
package internal

0 commit comments

Comments
 (0)