mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-17 23:42:33 +01:00
Remove redundant create event None check
This commit is contained in:
parent
277e50462d
commit
e1781b043b
1 changed files with 0 additions and 3 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue