diff --git a/lib/uint64set/uint64set.go b/lib/uint64set/uint64set.go index ee119333e..0bbea5f45 100644 --- a/lib/uint64set/uint64set.go +++ b/lib/uint64set/uint64set.go @@ -230,9 +230,7 @@ func (s *Set) Subtract(a *Set) { aCopy := a.Clone() // TODO: optimize it for _, x := range aCopy.AppendTo(nil) { - if s.Has(x) { - s.Del(x) - } + s.Del(x) } }