vic 2 anni fa
parent
commit
6d3ed98744
1 ha cambiato i file con 1 aggiunte e 5 eliminazioni
  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 {