summary refs log tree commit diff
path: root/synapse/storage/state.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-01-24 17:23:39 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2019-01-24 17:23:39 +0000
commite1781b043b4a73e1b22142b6e09c07ddd782ae57 (patch)
treef14c70aafceb06fd1aafe3df55ac5eb5c4f1adcc /synapse/storage/state.py
parentDo not return in a deferred function (diff)
downloadsynapse-e1781b043b4a73e1b22142b6e09c07ddd782ae57.tar.xz
Remove redundant create event None check
Diffstat (limited to '')
-rw-r--r--synapse/storage/state.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index fceb9744aa..c02130d9d6 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -458,9 +458,6 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore):
         # Retrieve the room's create event
         create_event = yield self.get_event(create_id)
 
-        if not create_event:
-            defer.returnValue(None)
-
         # Return predecessor if present
         defer.returnValue(create_event.content.get("predecessor", None))