Merge pull request #29423 from unclejack/api_cli_integ_return

return directly without ifs in remaining packages
This commit is contained in:
Sebastiaan van Stijn 2016-12-17 21:30:47 +01:00 committed by GitHub
commit fc1222118d
1 changed files with 1 additions and 5 deletions

View File

@ -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.