Skip to content

Commit

Permalink
lxc/rename: avoid fmt.Sprintf()
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Feb 13, 2025
1 parent 34fce19 commit 94c21d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lxc/rename.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"errors"
"fmt"
"strings"

"github.com/spf13/cobra"
Expand Down Expand Up @@ -61,7 +60,7 @@ func (c *cmdRename) run(cmd *cobra.Command, args []string) error {
}

// Don't require the remote to be passed as both source and target
args[1] = fmt.Sprintf("%s:%s", sourceRemote, args[1])
args[1] = sourceRemote + ":" + args[1]
}

// Call move
Expand Down

0 comments on commit 94c21d6

Please sign in to comment.