Skip to content

Commit 8b627c3

Browse files
committed
make update-gofmt
1 parent bb087e8 commit 8b627c3

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

options.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type Options struct {
8484
ValidateURL string `flag:"validate-url" cfg:"validate_url"`
8585
Scope string `flag:"scope" cfg:"scope"`
8686
ApprovalPrompt string `flag:"approval-prompt" cfg:"approval_prompt"`
87-
RequestLogging bool `flag:"request-logging" cfg:"request_logging"`
87+
RequestLogging bool `flag:"request-logging" cfg:"request_logging"`
8888

8989
SignatureKey string `flag:"signature-key" cfg:"signature_key" env:"OAUTH2_PROXY_SIGNATURE_KEY"`
9090
UpstreamCAs []string `flag:"upstream-ca" cfg:"upstream_ca"`
@@ -99,7 +99,7 @@ type Options struct {
9999
// Logging out of the console will destroy the user's token. The logoutRedirect
100100
// provides the user the option to perform single logout (SLO) through the identity
101101
// provider to destroy their single sign-on session.
102-
LogoutRedirectURL string `flag:"logout-url" cfg:"logout_url"`
102+
LogoutRedirectURL string `flag:"logout-url" cfg:"logout_url"`
103103

104104
// internal values that are set after config validation
105105
redirectURL *url.URL

options_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ func TestProxyURLs(t *testing.T) {
7373
assert.Equal(t, nil, o.Validate(&testProvider{}))
7474
t.Logf("%#v / %#v", o.Upstreams, o.proxyURLs)
7575
expected := []*url.URL{
76-
&url.URL{Scheme: "http", Host: "127.0.0.1:8080", Path: "/"},
76+
{Scheme: "http", Host: "127.0.0.1:8080", Path: "/"},
7777
// note the '/' was added
78-
&url.URL{Scheme: "http", Host: "127.0.0.1:8081", Path: "/"},
78+
{Scheme: "http", Host: "127.0.0.1:8081", Path: "/"},
7979
}
8080
assert.Equal(t, expected, o.proxyURLs)
8181
}
@@ -228,4 +228,4 @@ func TestValidateCookieSameSite(t *testing.T) {
228228
assert.Equal(t, nil, o.Validate(&testProvider{}))
229229
})
230230
}
231-
}
231+
}

providers/internal_util_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func NewValidateSessionStateTest() *ValidateSessionStateTest {
4444
if token_param == "" {
4545
missing := false
4646
received_headers := r.Header
47-
for k, _ := range vt_test.header {
47+
for k := range vt_test.header {
4848
received := received_headers.Get(k)
4949
expected := vt_test.header.Get(k)
5050
if received == "" || received != expected {

providers/openshift/provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func parseSubjectAccessReviewsByHost(review string) (map[string][]string, error)
187187
}
188188

189189
reviews := make(map[string][]string)
190-
for k, _ := range json.MustMap() {
190+
for k := range json.MustMap() {
191191
data, err := json.Get(k).EncodePretty()
192192
if err != nil {
193193
return nil, err

0 commit comments

Comments
 (0)