Skip to content

Commit

Permalink
Removed unneeded if statement (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krout0n authored Oct 15, 2022
1 parent 0c4e387 commit 35053d4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions claims.go
Original file line number Diff line number Diff line change
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 35053d4

Please sign in to comment.