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

Commit f178b45

Browse files
committed
Drop - redundant assert in the "update_room_membership" module API method.
EventsWorkerStore.get_event will raise a "NotFoundError" before the assert.
1 parent 4c0380b commit f178b45

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

synapse/module_api/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,10 +1013,6 @@ async def update_room_membership(
10131013
# Try to retrieve the resulting event.
10141014
event = await self._hs.get_datastores().main.get_event(event_id)
10151015

1016-
# update_membership is supposed to always return after the event has been
1017-
# successfully persisted.
1018-
assert event is not None
1019-
10201016
return event
10211017

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

0 commit comments

Comments
 (0)