Skip to content

Commit

Permalink
lxc/storage: 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 14, 2025
1 parent 3fcba46 commit 3a31e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lxc/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,12 +584,12 @@ func (c *cmdStorageInfo) run(cmd *cobra.Command, args []string) error {
values := u.Query()
projectName := values.Get("project")
if projectName != "" {
attribs = append(attribs, fmt.Sprintf("project %q", projectName))
attribs = append(attribs, `project "`+projectName+`"`)
}

locationName := values.Get("target")
if locationName != "" {
attribs = append(attribs, fmt.Sprintf("location %q", locationName))
attribs = append(attribs, `location "`+locationName+`"`)
}

if len(attribs) > 0 {
Expand Down

0 comments on commit 3a31e10

Please sign in to comment.