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

Automatic merge from submit-queue

Add defer

Add defer?
This commit is contained in:
k8s-merge-robot 2016-07-20 11:51:47 -07:00 committed by GitHub
commit 1ecd4efce6

View File

@ -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)
}