Skip to content

Commit

Permalink
优化代码 (#1939)
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhichao authored May 27, 2022
1 parent fb519fa commit 6d3ed98
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/bloom/bloom.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6d3ed98

Please sign in to comment.