Skip to content

Commit

Permalink
made linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-githubs committed Sep 23, 2024
1 parent cf5987e commit b4d48ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rules/standard_rules/impossible_travel_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ def gen_key(event):

def rule(event):
# too-many-return-statements due to error checking
# pylint: disable=global-statement,too-many-return-statements,too-complex
# pylint: disable=global-statement,too-many-return-statements,too-complex,too-many-statements
global EVENT_CITY_TRACKING
global CACHE_KEY
global IS_VPN
global IS_PRIVATE_RELAY
global IS_SATELLITE_NETWORK

EVENT_CITY_TRACKING = {}
CACHE_KEY = ""
IS_VPN = False
Expand Down Expand Up @@ -91,7 +91,7 @@ def rule(event):
deep_get(ipinfo_privacy, "service", default="") != "",
]
)
# Some satellite networks used during plane travel don't always
# Some satellite networks used during plane travel don't always
# register properly as VPN's, so we have a separate check here.
IS_SATELLITE_NETWORK = is_satellite_network(src_ip_enrichments)
if IS_VPN or IS_PRIVATE_RELAY or IS_SATELLITE_NETWORK:
Expand Down

0 comments on commit b4d48ee

Please sign in to comment.