diff --git a/staging/src/k8s.io/client-go/tools/cache/fake_custom_store.go b/staging/src/k8s.io/client-go/tools/cache/fake_custom_store.go index 8d71c247497..b59e2eb2724 100644 --- a/staging/src/k8s.io/client-go/tools/cache/fake_custom_store.go +++ b/staging/src/k8s.io/client-go/tools/cache/fake_custom_store.go @@ -40,7 +40,7 @@ func (f *FakeCustomStore) Add(obj interface{}) error { // Update calls the custom Update function if defined func (f *FakeCustomStore) Update(obj interface{}) error { if f.UpdateFunc != nil { - return f.Update(obj) + return f.UpdateFunc(obj) } return nil }