mirror of
https://github.com/smittix/intercept.git
synced 2026-07-22 08:18:09 -07:00
style: use consistent early-return guard in WiFi _matches filter
This commit is contained in:
+3
-1
@@ -208,7 +208,9 @@ def get_networks():
|
|||||||
return False
|
return False
|
||||||
if hidden == "false" and n.is_hidden:
|
if hidden == "false" and n.is_hidden:
|
||||||
return False
|
return False
|
||||||
return not (min_rssi_val is not None and (not n.rssi_current or n.rssi_current < min_rssi_val))
|
if min_rssi_val is not None and (not n.rssi_current or n.rssi_current < min_rssi_val): # noqa: SIM103
|
||||||
|
return False
|
||||||
|
return True
|
||||||
|
|
||||||
networks = [n for n in networks if _matches(n)]
|
networks = [n for n in networks if _matches(n)]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user