mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
make StringSet.Delete accept multiple items
This commit is contained in:
@@ -39,9 +39,11 @@ func (s StringSet) Insert(items ...string) {
|
||||
}
|
||||
}
|
||||
|
||||
// Delete removes item from the set.
|
||||
func (s StringSet) Delete(item string) {
|
||||
delete(s, item)
|
||||
// Delete removes all items from the set.
|
||||
func (s StringSet) Delete(items ...string) {
|
||||
for _, item := range items {
|
||||
delete(s, item)
|
||||
}
|
||||
}
|
||||
|
||||
// Has returns true iff item is contained in the set.
|
||||
|
Reference in New Issue
Block a user