Skip to content

Commit 9588346

Browse files
committed
[Provider/Azure] remove unncessary sprintf
1 parent 66fd133 commit 9588346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staging/src/k8s.io/legacy-cloud-providers/azure/azure_routes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ func mapNodeNameToRouteName(ipv6DualStackEnabled bool, nodeName types.NodeName,
405405
// Used with mapNodeNameToRouteName. See comment on mapNodeNameToRouteName.
406406
func mapRouteNameToNodeName(ipv6DualStackEnabled bool, routeName string) types.NodeName {
407407
if !ipv6DualStackEnabled {
408-
return types.NodeName(fmt.Sprintf("%s", routeName))
408+
return types.NodeName(routeName)
409409
}
410410
parts := strings.Split(routeName, routeNameSeparator)
411411
nodeName := parts[0]

0 commit comments

Comments
 (0)