Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor unnecessary else / elif when if block has a return statement #185

Merged
merged 1 commit into from
Jul 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions unzipper/helpers/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,7 @@ async def get_merge_task_message_id(user_id):
is_exist = await merge_tasks.find_one({"user_id": user_id})
if is_exist is not None and is_exist:
return is_exist["message_id"]
else:
return False
return False

async def clear_merge_tasks():
await merge_tasks.delete_many({})
Expand Down