use string-concatenation instead of sprintf for simple cases

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2020-09-29 13:38:06 +02:00
parent ecfad5a118
commit 8bf216728c
16 changed files with 44 additions and 47 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ func main() {
v = append(v, version)
}
if gitCommit != "" {
v = append(v, fmt.Sprintf("commit: %s", gitCommit))
v = append(v, "commit: "+gitCommit)
}
app.Version = strings.Join(v, "\n")