mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-18 07:52:56 +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
|
# Retrieve the room's create event
|
||||||
create_event = yield self.get_event(create_id)
|
create_event = yield self.get_event(create_id)
|
||||||
|
|
||||||
if not create_event:
|
|
||||||
defer.returnValue(None)
|
|
||||||
|
|
||||||
# Return predecessor if present
|
# Return predecessor if present
|
||||||
defer.returnValue(create_event.content.get("predecessor", None))
|
defer.returnValue(create_event.content.get("predecessor", None))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue