소스 검색

fix linting issue

Signed-off-by: Dominik Menke <[email protected]>
Dominik Menke 1 년 전
부모
커밋
33e863ac6c
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      cmd/compose/top.go

+ 4 - 4
cmd/compose/top.go

@@ -96,16 +96,16 @@ func collectTop(containers []api.ContainerProcSummary) (topHeader, []topEntries)
 
 
 	// ensure CMD is the right-most column
 	// ensure CMD is the right-most column
 	if pos, ok := header["CMD"]; ok {
 	if pos, ok := header["CMD"]; ok {
-		max := pos
+		maxPos := pos
 		for h, i := range header {
 		for h, i := range header {
-			if i > max {
-				max = i
+			if i > maxPos {
+				maxPos = i
 			}
 			}
 			if i > pos {
 			if i > pos {
 				header[h] = i - 1
 				header[h] = i - 1
 			}
 			}
 		}
 		}
-		header["CMD"] = max
+		header["CMD"] = maxPos
 	}
 	}
 
 
 	return header, entries
 	return header, entries