Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Drop - redundant assert in the "update_room_membership" module API me…
Browse files Browse the repository at this point in the history
…thod.

EventsWorkerStore.get_event will raise a "NotFoundError" before the assert.
  • Loading branch information
buffless-matt committed Aug 4, 2022
1 parent 4c0380b commit f178b45
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions synapse/module_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,10 +1013,6 @@ async def update_room_membership(
# Try to retrieve the resulting event.
event = await self._hs.get_datastores().main.get_event(event_id)

# update_membership is supposed to always return after the event has been
# successfully persisted.
assert event is not None

return event

async def create_and_send_event_into_room(self, event_dict: JsonDict) -> EventBase:
Expand Down

0 comments on commit f178b45

Please sign in to comment.