mirror of
https://github.com/element-hq/synapse.git
synced 2026-04-27 23:45:44 +00:00
Pop rather than del from dict
This commit is contained in:
@@ -1096,7 +1096,7 @@ class FederationHandler(BaseHandler):
|
||||
if prev_id != event.event_id:
|
||||
results[(event.type, event.state_key)] = prev_id
|
||||
else:
|
||||
del results[(event.type, event.state_key)]
|
||||
results.pop((event.type, event.state_key))
|
||||
|
||||
defer.returnValue(results.values())
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user