mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
optimize externalAddresses() return
We do not use addresses and err in function body,so we drop them to maintain a consistent coding style
This commit is contained in:
parent
84df067967
commit
4ae0423d27
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user