Unverified Commit a641e1cb authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

Merge pull request #68729 from TinySong/fix-client-go-typos

remove duplicated words in heap.go and interfaces.go
parents 1b2298cb dd4a8f9c
...@@ -34,6 +34,6 @@ type ScaleInterface interface { ...@@ -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)
} }
...@@ -204,7 +204,7 @@ func (h *Heap) AddIfNotPresent(obj interface{}) error { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment