Merge pull request #62406 from keitwb/patch-1

Fixing Update Function in FakeCustomStore
This commit is contained in:
Kubernetes Prow Robot 2019-01-09 10:20:24 -08:00 committed by GitHub
commit 0ac65cdb85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}