Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
fix version message (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbauriedel authored Aug 17, 2022
1 parent 8c5ff00 commit dbd981b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ func main() {
}

//goland:noinspection GoBoolExpressions
func buildVersion() string {
result := version
func buildVersion() (result string) {
result = version

if commit != "" {
result = fmt.Sprintf("%s\ncommit: %s", result, commit)
result += fmt.Sprintf("\ncommit: %s", commit)
}

if date != "" {
result = fmt.Sprintf("%s\ndate: %s", result, date)
result += fmt.Sprintf("\ndate: %s", date)
}

return result
Expand Down

0 comments on commit dbd981b

Please sign in to comment.