Skip to content

Commit

Permalink
lxc/network_zone: 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 7535084 commit 9d52ac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lxc/network_zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (c *cmdNetworkZoneList) run(cmd *cobra.Command, args []string) error {

data := [][]string{}
for _, zone := range zones {
strUsedBy := fmt.Sprintf("%d", len(zone.UsedBy))
strUsedBy := fmt.Sprint(len(zone.UsedBy))
details := []string{
zone.Name,
zone.Description,
Expand Down Expand Up @@ -827,7 +827,7 @@ func (c *cmdNetworkZoneRecordList) run(cmd *cobra.Command, args []string) error
entries := []string{}

for _, entry := range record.Entries {
entries = append(entries, fmt.Sprintf("%s %s", entry.Type, entry.Value))
entries = append(entries, entry.Type+" "+entry.Value)
}

details := []string{
Expand Down

0 comments on commit 9d52ac2

Please sign in to comment.