mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -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
|
@ -60,7 +60,7 @@ class UserDirectorySearchRestServlet(RestServlet):
|
|||
user_id = requester.user.to_string()
|
||||
|
||||
if not self.hs.config.user_directory_search_enabled:
|
||||
defer.returnValue((200, {"limited": False, "results": []}))
|
||||
return (200, {"limited": False, "results": []})
|
||||
|
||||
body = parse_json_object_from_request(request)
|
||||
|
||||
|
@ -76,7 +76,7 @@ class UserDirectorySearchRestServlet(RestServlet):
|
|||
user_id, search_term, limit
|
||||
)
|
||||
|
||||
defer.returnValue((200, results))
|
||||
return (200, results)
|
||||
|
||||
|
||||
def register_servlets(hs, http_server):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue