Remove useless enumerate

This commit is contained in:
Paul Nameless 2020-05-12 19:28:41 +08:00
parent 73d8067f53
commit 6982b5aaff

View file

@ -263,7 +263,7 @@ class Controller:
# do not notify, if muted
# TODO: optimize
chat = None
for i, chat in enumerate(self.model.chats.chats):
for chat in self.model.chats.chats:
if chat_id == chat["id"]:
chat = chat
break