rm: remove debugging output (#10554)

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

Signed-off-by: Mateus Esdras <linux.esdras@gmail.com>
This commit is contained in:
Mateus Esdras 2023-05-11 17:32:29 -03:00 committed by GitHub
parent bceb3c1876
commit 77dc9b54f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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")