Skip to content

Commit

Permalink
Removed unneeded if statement (golang-jwt#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krout0n authored and oxisto committed Mar 29, 2023
1 parent 6abd521 commit 057b27f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions claims.go
Expand Up @@ -265,9 +265,5 @@ func verifyIss(iss string, cmp string, required bool) bool {
if iss == "" {
return !required
}
if subtle.ConstantTimeCompare([]byte(iss), []byte(cmp)) != 0 {
return true
} else {
return false
}
return subtle.ConstantTimeCompare([]byte(iss), []byte(cmp)) != 0
}

0 comments on commit 057b27f

Please sign in to comment.