Skip to content

Commit 86a0da3

Browse files
committed
perf: string conversion lint
Signed-off-by: Hunter Gregory <[email protected]>
1 parent 442bad6 commit 86a0da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

npm/metrics/ai-utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func SendHeartbeatWithNumPolicies() {
105105
if err != nil {
106106
klog.Warningf("warn: NPM hearbeat. Couldn't get number of policies for telemetry log: %s", err.Error())
107107
} else {
108-
numPoliciesString = fmt.Sprint(numPolicies)
108+
numPoliciesString = strconv.Itoa(numPolicies)
109109
}
110110

111111
cidrNetPols := GetCidrNetPols()

0 commit comments

Comments
 (0)