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`.
This commit is contained in:
José Miguel Parrella 2020-02-08 09:30:58 -08:00 committed by GitHub
parent d71bb51192
commit e982e83de7
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}