From e982e83de7e43347c55802f9c3200ec6cf40a03b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Miguel=20Parrella?= Date: Sat, 8 Feb 2020 09:30:58 -0800 Subject: [PATCH] Cosmetic endline fix for --version (#254) This minor, cosmetic fix ensures the output of `--version` ends with a newline even when there's no runtime installed. Perhaps there is a better way, like ending L26 with a newline and chomping the output of `daprd --version`. --- pkg/version/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/version/version.go b/pkg/version/version.go index 5cbb184e..7e54b710 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -21,7 +21,7 @@ func GetRuntimeVersion() string { out, err := exec.Command(runtimeName, "--version").Output() if err != nil { - return "n/a" + return "n/a\n" } return string(out) }