mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
more lint driven refactoring
This commit is contained in:
parent
7919cda5ec
commit
0de6f3a76e
57 changed files with 168 additions and 241 deletions
|
@ -42,7 +42,7 @@ type HostTracker struct {
|
|||
|
||||
func NewHostTracker() *HostTracker {
|
||||
return &HostTracker{
|
||||
hosts: make(map[string]*Host, 0),
|
||||
hosts: make(map[string]*Host),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ func (t *HostTracker) Track(host, stripped string) {
|
|||
func (t *HostTracker) Unstrip(stripped string) *Host {
|
||||
t.RLock()
|
||||
defer t.RUnlock()
|
||||
if host, found := t.hosts[stripped]; found == true {
|
||||
if host, found := t.hosts[stripped]; found {
|
||||
return host
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue