Commit c5dec94f authored by Philipp Hörist's avatar Philipp Hörist
Browse files

ChatControl: Remove unnecessary keys() call

parent ab2c5ab9
Pipeline #8544 passed with stages
in 3 minutes and 15 seconds
......@@ -1233,7 +1233,7 @@ def shutdown(self):
roster = app.interface.roster
has_pending = roster.contact_has_pending_roster_events(self.contact,
self.account)
if key in roster.contacts_to_be_removed.keys() and not has_pending:
if key in roster.contacts_to_be_removed and not has_pending:
backend = roster.contacts_to_be_removed[key]['backend']
del roster.contacts_to_be_removed[key]
roster.remove_contact(self.contact.jid,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment