add defer

This commit is contained in:
wangkai1994 2020-06-23 20:34:23 +08:00
parent 5577214128
commit b3b95f5ab5
2 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
cluster/images/etcd/migrate
pkg/controller/garbagecollector
pkg/controller/podautoscaler
pkg/controller/replicaset
pkg/controller/resourcequota

View File

@ -906,7 +906,7 @@ func expectSyncNotBlocked(fakeDiscoveryClient *fakeServerResources, workerLock *
workerLockAcquired := make(chan struct{})
go func() {
workerLock.Lock()
workerLock.Unlock()
defer workerLock.Unlock()
close(workerLockAcquired)
}()
select {