[Provider/Azure] remove unncessary sprintf

This commit is contained in:
Gaurav Singh 2020-04-21 11:57:23 -04:00
parent 66fd1335fa
commit 958834683e

View File

@ -405,7 +405,7 @@ func mapNodeNameToRouteName(ipv6DualStackEnabled bool, nodeName types.NodeName,
// Used with mapNodeNameToRouteName. See comment on mapNodeNameToRouteName.
func mapRouteNameToNodeName(ipv6DualStackEnabled bool, routeName string) types.NodeName {
if !ipv6DualStackEnabled {
return types.NodeName(fmt.Sprintf("%s", routeName))
return types.NodeName(routeName)
}
parts := strings.Split(routeName, routeNameSeparator)
nodeName := parts[0]