Skip to content

Commit

Permalink
omit unused receiver name
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghaichao12 committed Apr 10, 2019
1 parent aa74064 commit e305db9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/proxy/util/network.go
Expand Up @@ -33,12 +33,12 @@ type NetworkInterfacer interface {
type RealNetwork struct{}

// 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()
}

// 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()
}

Expand Down

0 comments on commit e305db9

Please sign in to comment.