diff options
author | Erik Johnston <erik@matrix.org> | 2018-07-24 11:19:23 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-07-24 11:19:23 +0100 |
commit | 0fa73e4a63d6cd5d402ea5213eac6b766e650321 (patch) | |
tree | c63774744e4237607c8a8e5981ba61647a89349e /synapse | |
parent | Newsfile (diff) | |
download | synapse-0fa73e4a63d6cd5d402ea5213eac6b766e650321.tar.xz |
Remove unnecessary if
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/storage/events.py | 3 |
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", |