MicahParks / keyfunc

Create a jwt.Keyfunc for JWT parsing with a JWK Set or given cryptographic keys (like HMAC) in Golang.
Apache License 2.0
274 stars 45 forks source link

Remove nested if statement in JWKS refresh error handling #96

Closed sesaquecruz closed 11 months ago

sesaquecruz commented 11 months ago

Move the return statement from the 'else' to the preceding 'if' with a negative condition to remove the 2nd nested 'if'.