mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
use string-concatenation instead of sprintf for simple cases
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user