Skip to content

Commit

Permalink
Bring some sens to the linter
Browse files Browse the repository at this point in the history
Signed-off-by: m.nabokikh <[email protected]>
  • Loading branch information
nabokihms committed Jan 10, 2024
1 parent 60e788f commit 054261f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions connector/oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ func (c *Config) Open(id string, logger log.Logger) (conn connector.Connector, e
return nil, err
}

ctx, cancel := context.WithCancel(context.Background())
ctx = context.WithValue(ctx, oauth2.HTTPClient, httpClient)
bgctx, cancel := context.WithCancel(context.Background())
ctx := context.WithValue(bgctx, oauth2.HTTPClient, httpClient)

provider, err := getProvider(ctx, c.Issuer, c.ProviderDiscoveryOverrides)
if err != nil {
Expand Down
4 changes: 0 additions & 4 deletions connector/oidc/oidc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,10 +585,6 @@ func TestTokenIdentity(t *testing.T) {
}

func TestProviderOverride(t *testing.T) {
ctx := context.Background()
ctx, cancel := context.WithCancel(ctx)
defer cancel()

testServer, err := setupServer(map[string]any{
"sub": "subvalue",
"name": "namevalue",
Expand Down

0 comments on commit 054261f

Please sign in to comment.