Skip to content

Commit 35053d4

Browse files
authored
Removed unneeded if statement (#241)
1 parent 0c4e387 commit 35053d4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

claims.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,5 @@ func verifyIss(iss string, cmp string, required bool) bool {
265265
if iss == "" {
266266
return !required
267267
}
268-
if subtle.ConstantTimeCompare([]byte(iss), []byte(cmp)) != 0 {
269-
return true
270-
} else {
271-
return false
272-
}
268+
return subtle.ConstantTimeCompare([]byte(iss), []byte(cmp)) != 0
273269
}

0 commit comments

Comments
 (0)