From 75d1240446c1bf8d6183421cd5d196d77afd4e37 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 11 Mar 2018 18:15:37 +0000 Subject: [PATCH] spelling: interface --- client/fingerprint/network_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/fingerprint/network_test.go b/client/fingerprint/network_test.go index 87b57bd4f..fd01a9ea8 100644 --- a/client/fingerprint/network_test.go +++ b/client/fingerprint/network_test.go @@ -68,18 +68,18 @@ var ( ) // A fake network detector which returns no devices -type NetworkIntefaceDetectorNoDevices struct { +type NetworkInterfaceDetectorNoDevices struct { } -func (f *NetworkIntefaceDetectorNoDevices) Interfaces() ([]net.Interface, error) { +func (f *NetworkInterfaceDetectorNoDevices) Interfaces() ([]net.Interface, error) { return make([]net.Interface, 0), nil } -func (f *NetworkIntefaceDetectorNoDevices) InterfaceByName(name string) (*net.Interface, error) { +func (f *NetworkInterfaceDetectorNoDevices) InterfaceByName(name string) (*net.Interface, error) { return nil, fmt.Errorf("Device with name %s doesn't exist", name) } -func (f *NetworkIntefaceDetectorNoDevices) Addrs(intf *net.Interface) ([]net.Addr, error) { +func (f *NetworkInterfaceDetectorNoDevices) Addrs(intf *net.Interface) ([]net.Addr, error) { return nil, fmt.Errorf("No interfaces found for device %v", intf.Name) }