mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 18:04:49 -04:00
Run Black. (#5482)
This commit is contained in:
parent
7dcf984075
commit
32e7c9e7f2
376 changed files with 9142 additions and 10388 deletions
|
@ -60,10 +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": [],
|
||||
}))
|
||||
defer.returnValue((200, {"limited": False, "results": []}))
|
||||
|
||||
body = parse_json_object_from_request(request)
|
||||
|
||||
|
@ -76,7 +73,7 @@ class UserDirectorySearchRestServlet(RestServlet):
|
|||
raise SynapseError(400, "`search_term` is required field")
|
||||
|
||||
results = yield self.user_directory_handler.search_users(
|
||||
user_id, search_term, limit,
|
||||
user_id, search_term, limit
|
||||
)
|
||||
|
||||
defer.returnValue((200, results))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue