mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
Merge pull request #1 from HarshCasper/deepsource-fix-dd2afe80
Remove unnecessary guard around `delete`
This commit is contained in:
commit
91386cc725
1 changed files with 1 additions and 3 deletions
|
@ -64,10 +64,8 @@ func (ap *AccessPoint) RemoveClient(mac string) {
|
|||
defer ap.Unlock()
|
||||
|
||||
bssid := NormalizeMac(mac)
|
||||
if _, found := ap.clients[bssid]; found {
|
||||
delete(ap.clients, bssid)
|
||||
}
|
||||
}
|
||||
|
||||
func (ap *AccessPoint) AddClientIfNew(bssid string, frequency int, rssi int8) (*Station, bool) {
|
||||
ap.Lock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue