mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-06 18:03:55 +00:00
remove duplicated words in heap.go and interfaces.go
Kubernetes-commit: dd4a8f9cab80aaf280ed5ed95a6facc26c00d928
This commit is contained in:
parent
a5d40177db
commit
bd418b4186
@ -34,6 +34,6 @@ type ScaleInterface interface {
|
|||||||
// Get fetches the scale of the given scalable resource.
|
// Get fetches the scale of the given scalable resource.
|
||||||
Get(resource schema.GroupResource, name string) (*autoscalingapi.Scale, error)
|
Get(resource schema.GroupResource, name string) (*autoscalingapi.Scale, error)
|
||||||
|
|
||||||
// Update updates the scale of the the given scalable resource.
|
// Update updates the scale of the given scalable resource.
|
||||||
Update(resource schema.GroupResource, scale *autoscalingapi.Scale) (*autoscalingapi.Scale, error)
|
Update(resource schema.GroupResource, scale *autoscalingapi.Scale) (*autoscalingapi.Scale, error)
|
||||||
}
|
}
|
||||||
|
2
tools/cache/heap.go
vendored
2
tools/cache/heap.go
vendored
@ -204,7 +204,7 @@ func (h *Heap) AddIfNotPresent(obj interface{}) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// addIfNotPresentLocked assumes the lock is already held and adds the the provided
|
// addIfNotPresentLocked assumes the lock is already held and adds the provided
|
||||||
// item to the queue if it does not already exist.
|
// item to the queue if it does not already exist.
|
||||||
func (h *Heap) addIfNotPresentLocked(key string, obj interface{}) {
|
func (h *Heap) addIfNotPresentLocked(key string, obj interface{}) {
|
||||||
if _, exists := h.data.items[key]; exists {
|
if _, exists := h.data.items[key]; exists {
|
||||||
|
Loading…
Reference in New Issue
Block a user