summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-07-24 11:19:23 +0100
committerErik Johnston <erik@matrix.org>2018-07-24 11:19:23 +0100
commit0fa73e4a63d6cd5d402ea5213eac6b766e650321 (patch)
treec63774744e4237607c8a8e5981ba61647a89349e
parentNewsfile (diff)
downloadsynapse-0fa73e4a63d6cd5d402ea5213eac6b766e650321.tar.xz
Remove unnecessary if
-rw-r--r--synapse/storage/events.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 1b075e6cc6..cc8ab5165b 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -428,8 +428,7 @@ class EventsStore(EventsWorkerStore):
                                 delta = yield self._calculate_state_delta(
                                     room_id, current_state,
                                 )
-                                if delta is not None:
-                                    state_delta_for_room[room_id] = delta
+                                state_delta_for_room[room_id] = delta
 
                 yield self.runInteraction(
                     "persist_events",