Skip to content

Commit 1798358

Browse files
committed
make linter happy
Signed-off-by: spacewander <[email protected]>
1 parent e048b6f commit 1798358

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

pkg/ext-proc/backend/provider.go

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,10 @@ func (p *Provider) Init(refreshPodsInterval, refreshMetricsInterval, refreshMetr
111111
for {
112112
time.Sleep(5 * time.Second)
113113
podMetrics := p.AllFreshPodMetrics()
114-
freshPodMetrics := make([]*PodMetrics, 0)
115-
for _, pm := range podMetrics {
116-
freshPodMetrics = append(freshPodMetrics, pm)
117-
}
118-
klog.Infof("===DEBUG: Current Pods and metrics: %+v", freshPodMetrics)
114+
klog.Infof("===DEBUG: Current Pods and metrics: %+v", podMetrics)
119115

120116
podMetrics = p.AllStalePodMetrics()
121-
stalePodMetrics := make([]*PodMetrics, 0)
122-
for _, pm := range podMetrics {
123-
stalePodMetrics = append(stalePodMetrics, pm)
124-
}
125-
klog.Infof("===DEBUG: Stale Pods and metrics: %+v", stalePodMetrics)
117+
klog.Infof("===DEBUG: Stale Pods and metrics: %+v", podMetrics)
126118
}
127119
}()
128120
}

0 commit comments

Comments
 (0)