From 55a87d8d967827448c05c54fcacc07960646ade2 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 27 Jan 2018 21:11:45 +0200 Subject: [PATCH] Remove unnecessary return statements --- mautrix_telegram/user.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mautrix_telegram/user.py b/mautrix_telegram/user.py index a367c2bb..1ae1d4c6 100644 --- a/mautrix_telegram/user.py +++ b/mautrix_telegram/user.py @@ -185,19 +185,18 @@ class User: def update(self, update): if isinstance(update, (UpdateShortChatMessage, UpdateShortMessage, UpdateNewMessage, UpdateNewChannelMessage)): - return self.update_message(update) + self.update_message(update) elif isinstance(update, (UpdateChatUserTyping, UpdateUserTyping)): - return self.update_typing(update) + self.update_typing(update) elif isinstance(update, UpdateUserStatus): - return self.update_status(update) + self.update_status(update) elif isinstance(update, (UpdateChatAdmins, UpdateChatParticipantAdmin)): - return self.update_admin(update) + self.update_admin(update) elif isinstance(update, UpdateChatParticipants): portal = po.Portal.get_by_tgid(update.participants.chat_id, "chat") portal.update_telegram_participants(update.participants.participants) else: self.log.debug("Unhandled update: %s", update) - return def update_admin(self, update): portal = po.Portal.get_by_tgid(update.chat_id, "chat")