mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 15:16:42 +00:00
lib/uint64set: remove superflouos check for item existence before deleting it in Set.Subtract
This commit is contained in:
parent
0bc54c23ce
commit
44fa8226df
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