Unverified Commit 231874c7 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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
parents 24516c5a 34e712ab
...@@ -187,9 +187,7 @@ func TestGetExtraSupplementalGroupsForPod(t *testing.T) { ...@@ -187,9 +187,7 @@ func TestGetExtraSupplementalGroupsForPod(t *testing.T) {
manager := newTestVolumeManager(tmpDir, podManager, kubeClient) manager := newTestVolumeManager(tmpDir, podManager, kubeClient)
stopCh := runVolumeManager(manager) stopCh := runVolumeManager(manager)
defer func() { defer close(stopCh)
close(stopCh)
}()
podManager.SetPods([]*v1.Pod{pod}) podManager.SetPods([]*v1.Pod{pod})
......
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