fix golint

This commit is contained in:
JieJhih Jhang
2019-05-03 14:31:51 +08:00
parent 6a23a6278f
commit 21e4f0039e
4 changed files with 9 additions and 12 deletions

View File

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