forked from MirrorHub/synapse
Pop rather than del from dict
This commit is contained in:
parent
8eec652de5
commit
64a2cef9bb
1 changed files with 1 additions and 1 deletions
|
@ -1096,7 +1096,7 @@ class FederationHandler(BaseHandler):
|
||||||
if prev_id != event.event_id:
|
if prev_id != event.event_id:
|
||||||
results[(event.type, event.state_key)] = prev_id
|
results[(event.type, event.state_key)] = prev_id
|
||||||
else:
|
else:
|
||||||
del results[(event.type, event.state_key)]
|
results.pop((event.type, event.state_key))
|
||||||
|
|
||||||
defer.returnValue(results.values())
|
defer.returnValue(results.values())
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue