Skip to content

Commit 534e739

Browse files
authored
Merge pull request #2806 from jongwooo/use-fmt-sprintf-instead-of-strconv-itoa
Use fmt.Sprintf instead of strconv.Itoa
2 parents 09d3d5c + 9b4d3a1 commit 534e739

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gwctl/pkg/printer/gateways.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package printer
1919
import (
2020
"fmt"
2121
"io"
22-
"strconv"
2322
"strings"
2423
"text/tabwriter"
2524
"time"
@@ -63,7 +62,7 @@ func (gp *GatewaysPrinter) Print(resourceModel *resourcediscovery.ResourceModel)
6362

6463
var ports []string
6564
for _, listener := range gatewayNode.Gateway.Spec.Listeners {
66-
ports = append(ports, strconv.Itoa(int(listener.Port)))
65+
ports = append(ports, fmt.Sprintf("%d", int(listener.Port)))
6766
}
6867
portsOutput := strings.Join(ports, ",")
6968

0 commit comments

Comments
 (0)