diff --git a/cli/command/system/version.go b/cli/command/system/version.go index f84569767d..3a0ad75c35 100644 --- a/cli/command/system/version.go +++ b/cli/command/system/version.go @@ -197,8 +197,8 @@ func runVersion(ctx context.Context, dockerCli command.Cli, opts *versionOptions func prettyPrintVersion(dockerCli command.Cli, vd versionInfo, tmpl *template.Template) error { t := tabwriter.NewWriter(dockerCli.Out(), 20, 1, 1, ' ', 0) err := tmpl.Execute(t, vd) - t.Write([]byte("\n")) - t.Flush() + _, _ = t.Write([]byte("\n")) + _ = t.Flush() return err }