From 79c9c7e3e4a72954c13e14942d4dbcdd21be0ac3 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 8 Mar 2025 19:29:12 +0100 Subject: [PATCH] cli/command/system: ignore unhandled errors Signed-off-by: Sebastiaan van Stijn --- cli/command/system/version.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }