Fixing Update Function in FakeCustomStore

This commit is contained in:
Ben Keith 2018-04-11 11:00:57 -04:00 committed by GitHub
parent 99e77a76be
commit 85ec3ed243
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 // Update calls the custom Update function if defined
func (f *FakeCustomStore) Update(obj interface{}) error { func (f *FakeCustomStore) Update(obj interface{}) error {
if f.UpdateFunc != nil { if f.UpdateFunc != nil {
return f.Update(obj) return f.UpdateFunc(obj)
} }
return nil return nil
} }