Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
NewFuture committed Feb 14, 2024
1 parent 4fcd03b commit 6e8b958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_ip(ip_type, index="default"):
"""
if index is False: # disabled
return False
elif type(index) == list: # 如果获取到的规则是列表,则依次判断列表中每一个规则,直到找到一个可以正确获取到的IP
elif type(index) is list: # 如果获取到的规则是列表,则依次判断列表中每一个规则,直到找到一个可以正确获取到的IP
value = None
for i in index:
value = get_ip(ip_type, i)
Expand Down

0 comments on commit 6e8b958

Please sign in to comment.