mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/uint64set: remove superflouos check for item existence before deleting it in Set.Subtract
This commit is contained in:
parent
bb08bab263
commit
5c25070556
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue