From dd4a8f9cab80aaf280ed5ed95a6facc26c00d928 Mon Sep 17 00:00:00 2001 From: song Date: Mon, 17 Sep 2018 18:00:19 +0800 Subject: [PATCH] remove duplicated words in heap.go and interfaces.go --- staging/src/k8s.io/client-go/scale/interfaces.go | 2 +- staging/src/k8s.io/client-go/tools/cache/heap.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/client-go/scale/interfaces.go b/staging/src/k8s.io/client-go/scale/interfaces.go index 4668c7417d1..13f2cfb8e78 100644 --- a/staging/src/k8s.io/client-go/scale/interfaces.go +++ b/staging/src/k8s.io/client-go/scale/interfaces.go @@ -34,6 +34,6 @@ type ScaleInterface interface { // Get fetches the scale of the given scalable resource. 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) } diff --git a/staging/src/k8s.io/client-go/tools/cache/heap.go b/staging/src/k8s.io/client-go/tools/cache/heap.go index 78e492455ea..7357ff97a1f 100644 --- a/staging/src/k8s.io/client-go/tools/cache/heap.go +++ b/staging/src/k8s.io/client-go/tools/cache/heap.go @@ -204,7 +204,7 @@ func (h *Heap) AddIfNotPresent(obj interface{}) error { 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. func (h *Heap) addIfNotPresentLocked(key string, obj interface{}) { if _, exists := h.data.items[key]; exists {