Skip to content

Commit 33e863a

Browse files
dmkendeloof
authored andcommitted
fix linting issue
Signed-off-by: Dominik Menke <[email protected]>
1 parent f70209c commit 33e863a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/compose/top.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,16 @@ func collectTop(containers []api.ContainerProcSummary) (topHeader, []topEntries)
9696

9797
// ensure CMD is the right-most column
9898
if pos, ok := header["CMD"]; ok {
99-
max := pos
99+
maxPos := pos
100100
for h, i := range header {
101-
if i > max {
102-
max = i
101+
if i > maxPos {
102+
maxPos = i
103103
}
104104
if i > pos {
105105
header[h] = i - 1
106106
}
107107
}
108-
header["CMD"] = max
108+
header["CMD"] = maxPos
109109
}
110110

111111
return header, entries

0 commit comments

Comments
 (0)