From e305db9a017d162ba45db5db4376f3c56afda07d Mon Sep 17 00:00:00 2001 From: yanghaichao12 Date: Wed, 10 Apr 2019 09:24:19 -0400 Subject: [PATCH] omit unused receiver name --- pkg/proxy/util/network.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/proxy/util/network.go b/pkg/proxy/util/network.go index fa5c9fc7535..504ad939ace 100644 --- a/pkg/proxy/util/network.go +++ b/pkg/proxy/util/network.go @@ -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() }