0
0
Fork 1
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:
Andrew Morgan 2019-01-24 17:23:39 +00:00
parent 277e50462d
commit e1781b043b

View file

@ -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))