Fixing Update Function in FakeCustomStore

Kubernetes-commit: 85ec3ed24364fad9cd3472713762a02f58b264a6
This commit is contained in:
Ben Keith
2018-04-11 11:00:57 -04:00
committed by Kubernetes Publisher
parent 0403ab611e
commit 616d41b047
4 changed files with 1 additions and 634 deletions

View File

@@ -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
}