mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 12:44:21 -04:00
Enable mypy checking for unreachable code and fix instances. (#8432)
This commit is contained in:
parent
c1ef579b63
commit
4ff0201e62
17 changed files with 38 additions and 53 deletions
|
@ -962,8 +962,6 @@ class RoomCreationHandler(BaseHandler):
|
|||
try:
|
||||
random_string = stringutils.random_string(18)
|
||||
gen_room_id = RoomID(random_string, self.hs.hostname).to_string()
|
||||
if isinstance(gen_room_id, bytes):
|
||||
gen_room_id = gen_room_id.decode("utf-8")
|
||||
await self.store.store_room(
|
||||
room_id=gen_room_id,
|
||||
room_creator_user_id=creator_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue