Skip to content

Commit

Permalink
revad: move line-break from getVersionString() to actual printing (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
unixlab authored and labkode committed Aug 14, 2019
1 parent e8555b0 commit 346ddee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/revad/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ func getVersionString() string {
msg += "branch=%s "
msg += "go_version=%s "
msg += "build_date=%s "
msg += "build_platform=%s\n"
msg += "build_platform=%s"

return fmt.Sprintf(msg, version, gitCommit, gitBranch, goVersion, buildDate, buildPlatform)
}

func handleVersionFlag() {
if *versionFlag {
fmt.Fprintf(os.Stderr, getVersionString())
fmt.Fprintf(os.Stderr, "%s\n", getVersionString())
os.Exit(1)
}
}
Expand Down

0 comments on commit 346ddee

Please sign in to comment.