Removed unnecessary type conversion

nodeName is string variable and it unnecessary to convert it to string.
pull/6/head
Gregory Man 2017-11-14 11:04:18 +02:00
parent c1cd70ad16
commit 62923517fa
1 changed files with 1 additions and 1 deletions

View File

@ -1008,7 +1008,7 @@ func PatchNodeTaints(c clientset.Interface, nodeName string, oldNode *v1.Node, n
return fmt.Errorf("failed to create patch for node %q: %v", nodeName, err)
}
_, err = c.CoreV1().Nodes().Patch(string(nodeName), types.StrategicMergePatchType, patchBytes)
_, err = c.CoreV1().Nodes().Patch(nodeName, types.StrategicMergePatchType, patchBytes)
return err
}