Remove useless if condition on the memory session

This commit is contained in:
Lonami Exo 2018-03-03 17:01:06 +01:00
parent 81f8b7f76e
commit 96a1f580a4

View File

@ -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: