Skip to content

Commit

Permalink
lxc/version: avoid fmt.Sprintf (slow)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jan 21, 2025
1 parent 404c0a5 commit 385dabb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lxc/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (c *cmdVersion) run(cmd *cobra.Command, args []string) error {
// Client version
clientVersion := version.Version
if version.IsLTSVersion {
clientVersion = fmt.Sprintf("%s LTS", clientVersion)
clientVersion = clientVersion + " LTS"
}

// Remote version
Expand All @@ -57,7 +57,7 @@ func (c *cmdVersion) run(cmd *cobra.Command, args []string) error {
if err == nil {
serverVersion = info.Environment.ServerVersion
if info.Environment.ServerLTS {
serverVersion = fmt.Sprintf("%s LTS", serverVersion)
serverVersion = serverVersion + " LTS"
}
}
}
Expand Down

0 comments on commit 385dabb

Please sign in to comment.