diff --git a/.golangci.yaml b/.golangci.yaml index 92c702877d..bb9c2f2289 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -9,7 +9,7 @@ linters: - asciicheck - bidichk - errorlint - - exportloopref + - copyloopvar - gosec - revive - stylecheck diff --git a/test/pkg/environment/common/monitor.go b/test/pkg/environment/common/monitor.go index d3feb0b327..d01afb6a69 100644 --- a/test/pkg/environment/common/monitor.go +++ b/test/pkg/environment/common/monitor.go @@ -135,7 +135,6 @@ func (m *Monitor) DeletedNodes() []*corev1.Node { func (m *Monitor) PendingPods(selector labels.Selector) []*corev1.Pod { var pods []*corev1.Pod for _, pod := range m.poll().pods.Items { - pod := pod if pod.Status.Phase != corev1.PodPending { continue } @@ -154,7 +153,6 @@ func (m *Monitor) PendingPodsCount(selector labels.Selector) int { func (m *Monitor) RunningPods(selector labels.Selector) []*corev1.Pod { var pods []*corev1.Pod for _, pod := range m.poll().pods.Items { - pod := pod if pod.Status.Phase != corev1.PodRunning { continue }