mirror of
https://github.com/bettercap/bettercap
synced 2025-07-05 20:42:09 -07:00
Remove unnecessary guard around delete
This commit is contained in:
parent
c0e9f8cbdd
commit
a26b3f366b
1 changed files with 1 additions and 3 deletions
|
@ -64,9 +64,7 @@ func (ap *AccessPoint) RemoveClient(mac string) {
|
|||
defer ap.Unlock()
|
||||
|
||||
bssid := NormalizeMac(mac)
|
||||
if _, found := ap.clients[bssid]; found {
|
||||
delete(ap.clients, bssid)
|
||||
}
|
||||
delete(ap.clients, bssid)
|
||||
}
|
||||
|
||||
func (ap *AccessPoint) AddClientIfNew(bssid string, frequency int, rssi int8) (*Station, bool) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue