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