mirror of https://github.com/docker/cli.git
Merge pull request #29423 from unclejack/api_cli_integ_return
return directly without ifs in remaining packages
This commit is contained in:
commit
fc1222118d
|
@ -70,11 +70,7 @@ func Print(dockerCli *command.DockerCli, ctx context.Context, tasks []swarm.Task
|
||||||
defer writer.Flush()
|
defer writer.Flush()
|
||||||
fmt.Fprintln(writer, strings.Join([]string{"ID", "NAME", "IMAGE", "NODE", "DESIRED STATE", "CURRENT STATE", "ERROR", "PORTS"}, "\t"))
|
fmt.Fprintln(writer, strings.Join([]string{"ID", "NAME", "IMAGE", "NODE", "DESIRED STATE", "CURRENT STATE", "ERROR", "PORTS"}, "\t"))
|
||||||
|
|
||||||
if err := print(writer, ctx, tasks, resolver, noTrunc); err != nil {
|
return print(writer, ctx, tasks, resolver, noTrunc)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// PrintQuiet shows task list in a quiet way.
|
// PrintQuiet shows task list in a quiet way.
|
||||||
|
|
Loading…
Reference in New Issue