From 53079579b1cccff3b12b5e08bff5283b5f0e1cd9 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 }