优化代码 (#1939)

This commit is contained in:
vic
2022-05-27 18:36:18 +08:00
committed by GitHub
parent fb519fa547
commit 6d3ed98744

View File

@@ -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 {