From 0eb8f7804173094d878647c40b58b5276b261e64 Mon Sep 17 00:00:00 2001 From: Alejandro Moreno Date: Wed, 17 Jan 2024 13:16:32 +0100 Subject: [PATCH] Remove extra newline from version command The version command prints two new lines at the end. This PR removes one of them. --- cmd/dt/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dt/version.go b/cmd/dt/version.go index cf335ab..a4ecee9 100644 --- a/cmd/dt/version.go +++ b/cmd/dt/version.go @@ -28,7 +28,7 @@ var versionCmd = &cobra.Command{ if Commit != "" { msg += fmt.Sprintf("Git Commit: %s\n", Commit) } - fmt.Printf("%s\n", msg) + fmt.Print(msg) os.Exit(0) }, }