mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-04 10:47:25 +00:00
cleanup: use sets.Clone() to avoid interim slice
This commit is contained in:
@@ -63,7 +63,7 @@ func (u *uidTrackingExpectations) getExpectedUIDs(controllerKey string) sets.Str
|
||||
return nil
|
||||
}
|
||||
uids.RLock()
|
||||
set := sets.NewString(uids.set.UnsortedList()...)
|
||||
set := uids.set.Clone()
|
||||
uids.RUnlock()
|
||||
return set
|
||||
}
|
||||
|
Reference in New Issue
Block a user