From 23834bcbbb0d2a83196bf78155a227ec4da38926 Mon Sep 17 00:00:00 2001 From: Elliot <3186037+elliot-100@users.noreply.github.com> Date: Sat, 14 Sep 2024 11:37:37 +0100 Subject: [PATCH] Refactor: remove unnecessary `elif` after `return` statement --- spond/spond.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spond/spond.py b/spond/spond.py index 72a0db6..30da785 100644 --- a/spond/spond.py +++ b/spond/spond.py @@ -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" }