Skip to content

Commit

Permalink
lxc/query: replace fmt.Sprintf(%v, var) by fmt.Sprint(var)
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 89794e4 commit ad4e61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxc/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (c *cmdQuery) pretty(input any) string {
enc.SetIndent("", "\t")
err := enc.Encode(input)
if err != nil {
return fmt.Sprintf("%v", input)
return fmt.Sprint(input)
}

return pretty.String()
Expand Down

0 comments on commit ad4e61d

Please sign in to comment.