vic 2 年 前
コミット
6d3ed98744
1 ファイル変更1 行追加5 行削除
  1. 1 5
      core/bloom/bloom.go

+ 1 - 5
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 {