From 00d4cac42108248d8513e7f6105de8a4adbf2c02 Mon Sep 17 00:00:00 2001 From: Krout0n Date: Fri, 16 Sep 2022 15:41:11 +0900 Subject: [PATCH] Removed unneeded if statement --- 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 }