diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-01-24 17:23:39 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-01-24 17:23:39 +0000 |
commit | e1781b043b4a73e1b22142b6e09c07ddd782ae57 (patch) | |
tree | f14c70aafceb06fd1aafe3df55ac5eb5c4f1adcc | |
parent | Do not return in a deferred function (diff) | |
download | synapse-e1781b043b4a73e1b22142b6e09c07ddd782ae57.tar.xz |
Remove redundant create event None check
-rw-r--r-- | synapse/storage/state.py | 3 |
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)) |