From 3d61f1a1104da244477133f9cc011726f8fc6f5a Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 5 Dec 2023 16:28:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/waf/utils/utils.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/waf/utils/utils.go b/internal/waf/utils/utils.go index edf08e7..4396b98 100644 --- a/internal/waf/utils/utils.go +++ b/internal/waf/utils/utils.go @@ -86,9 +86,6 @@ func MatchBytesCache(regex *re.Regexp, byteSlice []byte, cacheLife CacheLife) bo cacheHits.IncreaseHit(regIdString) return item.Value == 1 } - if item != nil { - return item.Value == 1 - } var b = regex.Match(byteSlice) if b { cache.Write(key, 1, fasttime.Now().Unix()+cacheLife)