Commit 1ecd4efc authored by k8s-merge-robot's avatar k8s-merge-robot Committed by GitHub

Merge pull request #29169 from kevinjkj/kevinjkj-patch-4

Automatic merge from submit-queue Add defer Add defer?
parents 8043baf1 074dab86
......@@ -203,7 +203,7 @@ func (c *Fake) InvokesProxy(action Action) restclient.ResponseWrapper {
// ClearActions clears the history of actions called on the fake client
func (c *Fake) ClearActions() {
c.Lock()
c.Unlock()
defer c.Unlock()
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