mirror of https://github.com/docker/cli.git
return directly without ifs in remaining packages
Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
This commit is contained in:
parent
4a5426ef16
commit
9197940e4e
|
@ -70,11 +70,7 @@ func Print(dockerCli *command.DockerCli, ctx context.Context, tasks []swarm.Task
|
|||
defer writer.Flush()
|
||||
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 err
|
||||
}
|
||||
|
||||
return nil
|
||||
return print(writer, ctx, tasks, resolver, noTrunc)
|
||||
}
|
||||
|
||||
// PrintQuiet shows task list in a quiet way.
|
||||
|
|
Loading…
Reference in New Issue