mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
more lint driven refactoring
This commit is contained in:
parent
7919cda5ec
commit
0de6f3a76e
57 changed files with 168 additions and 241 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue