mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
cleanup: simplify the function implementation of IPSet
This commit is contained in:
parent
aeb410fe1f
commit
f1c9a70b47
@ -133,7 +133,7 @@ func (set *IPSet) validateEntry(entry *utilipset.Entry) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (set *IPSet) isEmpty() bool {
|
func (set *IPSet) isEmpty() bool {
|
||||||
return len(set.activeEntries.UnsortedList()) == 0
|
return set.activeEntries.Len() == 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (set *IPSet) getComment() string {
|
func (set *IPSet) getComment() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user