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 Feb 21, 2023
1 parent 3504b4b commit 5307957
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 5307957

Please sign in to comment.