Commit 3eb9aff2 authored by zhangke's avatar zhangke

Update fake.go

parent 4f621522
...@@ -179,7 +179,7 @@ func (c *Fake) InvokesProxy(action Action) restclient.ResponseWrapper { ...@@ -179,7 +179,7 @@ func (c *Fake) InvokesProxy(action Action) restclient.ResponseWrapper {
// ClearActions clears the history of actions called on the fake client // ClearActions clears the history of actions called on the fake client
func (c *Fake) ClearActions() { func (c *Fake) ClearActions() {
c.Lock() c.Lock()
c.Unlock() defer c.Unlock()
c.actions = make([]Action, 0) c.actions = make([]Action, 0)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment