Skip to content

Commit

Permalink
test/mini-oidc: silence some lint problems
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Dec 20, 2024
1 parent 27e553b commit 2ca87c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/mini-oidc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func main() {
},
}

provider, err := op.NewOpenIDProvider(issuer, config, storage, op.WithAllowInsecure())
provider, err := op.NewOpenIDProvider(issuer, config, storage, op.WithAllowInsecure()) //nolint:staticcheck,unused // SA1019 to be replaced by Mark L.
if err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion test/mini-oidc/storage/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (c *Client) DevMode() bool {
}

// RestrictAdditionalIdTokenScopes allows specifying which custom scopes shall be asserted into the id_token.
func (c *Client) RestrictAdditionalIdTokenScopes() func(scopes []string) []string {
func (c *Client) RestrictAdditionalIdTokenScopes() func(scopes []string) []string { //revive:disable-line:var-naming
return func(scopes []string) []string {
return scopes
}
Expand Down

0 comments on commit 2ca87c2

Please sign in to comment.