Skip to content

Commit 2b984b3

Browse files
committed
fix kubelet stats staticcheck error
1 parent 8b0a7de commit 2b984b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/kubelet/stats/cri_stats_provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ func (p *criStatsProvider) cleanupOutdatedCaches() {
700700
for k, v := range p.cpuUsageCache {
701701
if v == nil {
702702
delete(p.cpuUsageCache, k)
703+
continue
703704
}
704705

705706
if time.Since(time.Unix(0, v.stats.Timestamp)) > defaultCachePeriod {

0 commit comments

Comments
 (0)