Skip to content

Commit

Permalink
Fixed lint warning
Browse files Browse the repository at this point in the history
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
  • Loading branch information
jpkrohling committed Sep 3, 2020
1 parent 8aff853 commit 1330125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processor/authenticationprocessor/oidc_authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (o *oidcAuthenticator) authenticate(ctx context.Context) (bool, error) {
}

claims := map[string]interface{}{}
if err := idToken.Claims(&claims); err != nil {
if err = idToken.Claims(&claims); err != nil {
// currently, this isn't a valid condition, the Verify call a few lines above
// will already attempt to parse the payload as a json and set it as the claims
// for the token. As we are using a map to hold the claims, there's no way to fail
Expand Down

0 comments on commit 1330125

Please sign in to comment.