Skip to content

Commit

Permalink
Refactor: remove unnecessary elif after return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
elliot-100 committed Oct 21, 2024
1 parent b678777 commit 23834bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spond/spond.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ async def send_message(

if chat_id is not None:
return self._continue_chat(chat_id, text)
elif group_uid is None or user is None:
if group_uid is None or user is None:
return {
"error": "wrong usage, group_id and user_id needed or continue chat with chat_id"
}
Expand Down

0 comments on commit 23834bc

Please sign in to comment.