mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Merge pull request #111267 from BinacsLee/binacs/remove-unneeded-unsortedlist
cleanup: use sets.Len() instead of len(sets.UnsortedList()) in the isEmpty function
This commit is contained in:
commit
b96a04df90
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ func (set *IPSet) validateEntry(entry *utilipset.Entry) bool {
|
|||
}
|
||||
|
||||
func (set *IPSet) isEmpty() bool {
|
||||
return len(set.activeEntries.UnsortedList()) == 0
|
||||
return set.activeEntries.Len() == 0
|
||||
}
|
||||
|
||||
func (set *IPSet) getComment() string {
|
||||
|
|
|
|||
Loading…
Reference in a new issue