mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-28 13:03:43 +00:00
Fixing Update Function in FakeCustomStore
This commit is contained in:
parent
99e77a76be
commit
85ec3ed243
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user