mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-25 07:09: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
|
@ -383,7 +383,7 @@ class DirectoryHandler(BaseHandler):
|
|||
"""
|
||||
creator = await self.store.get_room_alias_creator(alias.to_string())
|
||||
|
||||
if creator is not None and creator == user_id:
|
||||
if creator == user_id:
|
||||
return True
|
||||
|
||||
# Resolve the alias to the corresponding room.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue