From 1f87c72e34204e95d70932e7ac6d4686c3b506cd Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Tue, 16 Mar 2021 19:20:19 -0500 Subject: [PATCH] Fix syntax error --- cmd/version.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/version.go b/cmd/version.go index 312a164..f63034a 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -24,6 +24,7 @@ func VersionCmd(args CmdArgs) (int, error) { if GitCommit != "" { fmt.Fprintf(&b, " revision: %s\n", GitCommit) } + if BuildDate != "" { fmt.Fprintf(&b, " build date: %s\n", BuildDate) }