From 6d3ed98744daf22c562ca7c6f3e517aa43a8ae68 Mon Sep 17 00:00:00 2001 From: vic <1018595261@qq.com> Date: Fri, 27 May 2022 18:36:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=20(#1939)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/bloom/bloom.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/bloom/bloom.go b/core/bloom/bloom.go index d6598be1..a3ab8a29 100644 --- a/core/bloom/bloom.go +++ b/core/bloom/bloom.go @@ -69,11 +69,7 @@ func (f *Filter) Exists(data []byte) (bool, error) { if err != nil { return false, err } - if !isSet { - return false, nil - } - - return true, nil + return isSet, nil } func (f *Filter) getLocations(data []byte) []uint {