Simplify the if statement

This commit is contained in:
deepsource-autofix[bot] 2022-05-28 17:03:07 +00:00 committed by 洛水.山岭居室
parent c88b975eda
commit dafb6f6e64

View File

@ -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