mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 20:05:06 -04:00
Replace returnValue with return (#5736)
This commit is contained in:
parent
18a466b84e
commit
4806651744
177 changed files with 1359 additions and 1513 deletions
|
@ -46,7 +46,7 @@ class DirectoryWorkerStore(SQLBaseStore):
|
|||
)
|
||||
|
||||
if not room_id:
|
||||
defer.returnValue(None)
|
||||
return None
|
||||
return
|
||||
|
||||
servers = yield self._simple_select_onecol(
|
||||
|
@ -57,10 +57,10 @@ class DirectoryWorkerStore(SQLBaseStore):
|
|||
)
|
||||
|
||||
if not servers:
|
||||
defer.returnValue(None)
|
||||
return None
|
||||
return
|
||||
|
||||
defer.returnValue(RoomAliasMapping(room_id, room_alias.to_string(), servers))
|
||||
return RoomAliasMapping(room_id, room_alias.to_string(), servers)
|
||||
|
||||
def get_room_alias_creator(self, room_alias):
|
||||
return self._simple_select_one_onecol(
|
||||
|
@ -125,7 +125,7 @@ class DirectoryStore(DirectoryWorkerStore):
|
|||
raise SynapseError(
|
||||
409, "Room alias %s already exists" % room_alias.to_string()
|
||||
)
|
||||
defer.returnValue(ret)
|
||||
return ret
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def delete_room_alias(self, room_alias):
|
||||
|
@ -133,7 +133,7 @@ class DirectoryStore(DirectoryWorkerStore):
|
|||
"delete_room_alias", self._delete_room_alias_txn, room_alias
|
||||
)
|
||||
|
||||
defer.returnValue(room_id)
|
||||
return room_id
|
||||
|
||||
def _delete_room_alias_txn(self, txn, room_alias):
|
||||
txn.execute(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue