Remove unnecessary guard around delete

This commit is contained in:
deepsource-autofix[bot] 2021-02-01 08:47:34 +00:00 committed by GitHub
parent c0e9f8cbdd
commit a26b3f366b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}
}
func (ap *AccessPoint) AddClientIfNew(bssid string, frequency int, rssi int8) (*Station, bool) {