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

@ -43,7 +43,7 @@ func (ap *AccessPoint) Get(bssid string) (*Station, bool) {
defer ap.Unlock()
bssid = NormalizeMac(bssid)
if s, found := ap.clients[bssid]; found == true {
if s, found := ap.clients[bssid]; found {
return s, true
}
return nil, false
@ -55,7 +55,7 @@ func (ap *AccessPoint) AddClient(bssid string, frequency int, rssi int8) *Statio
bssid = NormalizeMac(bssid)
if s, found := ap.clients[bssid]; found == true {
if s, found := ap.clients[bssid]; found {
// update
s.Frequency = frequency
s.RSSI = rssi