From 96a1f580a4994825ef3fb80d5ee63908ede6ac33 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sat, 3 Mar 2018 17:01:06 +0100 Subject: [PATCH] Remove useless if condition on the memory session --- telethon/sessions/memory.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/telethon/sessions/memory.py b/telethon/sessions/memory.py index 939f986d..42af7ad9 100644 --- a/telethon/sessions/memory.py +++ b/telethon/sessions/memory.py @@ -116,8 +116,6 @@ class MemorySession(Session): entities.extend(tlo.chats) if hasattr(tlo, 'users') and utils.is_list_like(tlo.users): entities.extend(tlo.users) - if not entities: - return rows = [] # Rows to add (id, hash, username, phone, name) for e in entities: