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)