mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
simplified session id check
This commit is contained in:
parent
7a682219cc
commit
0ab0f444a2
|
@ -328,10 +328,7 @@ def check_session_id(id: bytes, id_to_check: bytes):
|
|||
True
|
||||
False
|
||||
"""
|
||||
if id == id_to_check:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
return id == id_to_check
|
||||
|
||||
|
||||
def encode_grid(grid):
|
||||
|
|
Loading…
Reference in a new issue