Merge pull request #53689 from foxyriver/fix-defer

Automatic merge from submit-queue (batch tested with PRs 53689, 56880, 55856, 59289, 60249). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

simplify defer statement

**What this PR does / why we need it**:

simplify defer statement
This commit is contained in:
Kubernetes Submit Queue 2018-02-28 00:00:25 -08:00 committed by GitHub
commit 231874c74c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,9 +187,7 @@ func TestGetExtraSupplementalGroupsForPod(t *testing.T) {
manager := newTestVolumeManager(tmpDir, podManager, kubeClient)
stopCh := runVolumeManager(manager)
defer func() {
close(stopCh)
}()
defer close(stopCh)
podManager.SetPods([]*v1.Pod{pod})