Skip to content

Commit 8de8d25

Browse files
authored
Merge pull request kubernetes#90338 from gaurav1086/azure_remove_sprintf
provider/azure: Remove unnecessary Sprintf in azure_routes.go
2 parents 45bfd14 + 9588346 commit 8de8d25

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)