Commit 4ae0423d authored by NickrenREN's avatar NickrenREN

optimize externalAddresses() return

We do not use addresses and err in function body,so we drop them to maintain a consistent coding style
parent 84df0679
......@@ -361,7 +361,7 @@ type nodeAddressProvider struct {
nodeClient corev1client.NodeInterface
}
func (n nodeAddressProvider) externalAddresses() (addresses []string, err error) {
func (n nodeAddressProvider) externalAddresses() ([]string, error) {
preferredAddressTypes := []apiv1.NodeAddressType{
apiv1.NodeExternalIP,
apiv1.NodeLegacyHostIP,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment