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

Automatic merge from submit-queue

Add defer

Add defer?
pull/6/head
k8s-merge-robot 2016-07-20 11:51:47 -07:00 committed by GitHub
commit 1ecd4efce6
1 changed files with 1 additions and 1 deletions

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