summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-07-24 15:08:01 +0100
committerErik Johnston <erik@matrix.org>2018-07-24 15:08:01 +0100
commit8f65ab98d2ab35bbb29c23cc7978d54b12fd3db0 (patch)
treeec4fa156b3eeade226f4258194660115e8c1bf95 /synapse/storage
parentFixup comment (and indent) (diff)
downloadsynapse-8f65ab98d2ab35bbb29c23cc7978d54b12fd3db0.tar.xz
Remove unnecessary iteritems
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 76cfbc90fe..9c94d3454f 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -696,7 +696,7 @@ class EventsStore(EventsWorkerStore):
         existing_state = yield self.get_current_state_ids(room_id)
 
         to_delete = [
-            key for key, ev_id in iteritems(existing_state)
+            key for key in existing_state
             if key not in current_state
         ]