mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
omit unused receiver name
This commit is contained in:
parent
aa74064600
commit
e305db9a01
@ -33,12 +33,12 @@ type NetworkInterfacer interface {
|
|||||||
type RealNetwork struct{}
|
type RealNetwork struct{}
|
||||||
|
|
||||||
// Addrs wraps net.Interface.Addrs(), it's a part of NetworkInterfacer interface.
|
// Addrs wraps net.Interface.Addrs(), it's a part of NetworkInterfacer interface.
|
||||||
func (_ RealNetwork) Addrs(intf *net.Interface) ([]net.Addr, error) {
|
func (RealNetwork) Addrs(intf *net.Interface) ([]net.Addr, error) {
|
||||||
return intf.Addrs()
|
return intf.Addrs()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Interfaces wraps net.Interfaces(), it's a part of NetworkInterfacer interface.
|
// Interfaces wraps net.Interfaces(), it's a part of NetworkInterfacer interface.
|
||||||
func (_ RealNetwork) Interfaces() ([]net.Interface, error) {
|
func (RealNetwork) Interfaces() ([]net.Interface, error) {
|
||||||
return net.Interfaces()
|
return net.Interfaces()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user