From 35053d4e202c7cffd7ecc96ce2b247e2117f838e Mon Sep 17 00:00:00 2001 From: Krouton Date: Sat, 15 Oct 2022 21:38:07 +0900 Subject: [PATCH] Removed unneeded if statement (#241) --- claims.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/claims.go b/claims.go index 9d95cad2..364cec87 100644 --- a/claims.go +++ b/claims.go @@ -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 }