mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
Simplify the if
statement
This commit is contained in:
parent
c88b975eda
commit
dafb6f6e64
@ -75,10 +75,7 @@ class Auth:
|
||||
|
||||
async def admin_callback(callback_query_data: str) -> Tuple[bool, int]:
|
||||
_data = callback_query_data.split("|")
|
||||
if _data[1] == "pass":
|
||||
_result = True
|
||||
else:
|
||||
_result = False
|
||||
_result = _data[1] == "pass"
|
||||
_user_id = int(_data[2])
|
||||
return _result, _user_id
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user