more lint driven refactoring

This commit is contained in:
evilsocket 2018-04-24 18:26:16 +02:00
commit 0de6f3a76e
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
57 changed files with 168 additions and 241 deletions

View file

@ -77,7 +77,7 @@ func (lan *LAN) Get(mac string) (*Endpoint, bool) {
lan.Lock()
defer lan.Unlock()
if e, found := lan.hosts[mac]; found == true {
if e, found := lan.hosts[mac]; found {
return e, true
}
return nil, false
@ -106,7 +106,7 @@ func (lan *LAN) WasMissed(mac string) bool {
lan.Lock()
defer lan.Unlock()
if ttl, found := lan.ttl[mac]; found == true {
if ttl, found := lan.ttl[mac]; found {
return ttl < LANDefaultttl
}
return true