more lint driven refactoring

This commit is contained in:
evilsocket 2018-04-26 12:19:52 +02:00
parent 0de6f3a76e
commit 1afab5d7be
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
7 changed files with 19 additions and 26 deletions

View file

@ -58,7 +58,7 @@ func ArpUpdate(iface string) (ArpTable, error) {
func ArpLookup(iface string, address string, refresh bool) (string, error) {
// Refresh ARP table if first run or if a force refresh has been instructed.
if ArpParsed() == false || refresh {
if !ArpParsed() || refresh {
if _, err := ArpUpdate(iface); err != nil {
return "", err
}
@ -76,7 +76,7 @@ func ArpLookup(iface string, address string, refresh bool) (string, error) {
}
func ArpInverseLookup(iface string, mac string, refresh bool) (string, error) {
if ArpParsed() == false || refresh {
if !ArpParsed() || refresh {
if _, err := ArpUpdate(iface); err != nil {
return "", err
}