浏览代码

rm: remove debugging output (#10554)

For example, when no container was being removed,
this would print `[]`.

Signed-off-by: Mateus Esdras <[email protected]>
Mateus Esdras 2 年之前
父节点
当前提交
77dc9b54f3
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      pkg/compose/remove.go

+ 0 - 1
pkg/compose/remove.go

@@ -75,7 +75,6 @@ func (s *composeService) Remove(ctx context.Context, projectName string, options
 	stoppedContainers.forEach(func(c moby.Container) {
 	stoppedContainers.forEach(func(c moby.Container) {
 		names = append(names, getCanonicalContainerName(c))
 		names = append(names, getCanonicalContainerName(c))
 	})
 	})
-	fmt.Fprintln(s.stdinfo(), names)
 
 
 	if len(names) == 0 {
 	if len(names) == 0 {
 		fmt.Fprintln(s.stdinfo(), "No stopped containers")
 		fmt.Fprintln(s.stdinfo(), "No stopped containers")