golint says don't use underscores in Go names; var from_hw should be fromHw

This commit is contained in:
Kent Gruber 2018-05-01 23:13:16 -04:00
parent 7996fc40ff
commit 024f978c3a

View file

@ -20,9 +20,9 @@ func findMAC(s *session.Session, ip net.IP, probe bool) (net.HardwareAddr, error
mac, err = network.ArpLookup(s.Interface.Name(), ip.String(), false)
if err != nil && probe {
from := s.Interface.IP
from_hw := s.Interface.HW
fromHw := s.Interface.HW
if err, probe := packets.NewUDPProbe(from, from_hw, ip, 139); err != nil {
if err, probe := packets.NewUDPProbe(from, fromHw, ip, 139); err != nil {
log.Error("Error while creating UDP probe packet for %s: %s", ip.String(), err)
} else {
s.Queue.Send(probe)