summary refs log tree commit diff
path: root/synapse/rest/client/devices.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2021-09-23 11:59:07 +0100
committerGitHub <noreply@github.com>2021-09-23 11:59:07 +0100
commitaa2c027792d04c36b17866710e95a41d31f5d99c (patch)
treea4fedd511f23f3224c0c3fdf663b28c27acfcdab /synapse/rest/client/devices.py
parentFactor out a separate `EventContext.for_outlier` (#10883) (diff)
downloadsynapse-aa2c027792d04c36b17866710e95a41d31f5d99c.tar.xz
Remove unnecessary parentheses around tuples returned from methods (#10889)
Diffstat (limited to 'synapse/rest/client/devices.py')
-rw-r--r--synapse/rest/client/devices.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/devices.py b/synapse/rest/client/devices.py
index 25bc3c8f47..8566dc5cb5 100644
--- a/synapse/rest/client/devices.py
+++ b/synapse/rest/client/devices.py
@@ -211,7 +211,7 @@ class DehydratedDeviceServlet(RestServlet):
         if dehydrated_device is not None:
             (device_id, device_data) = dehydrated_device
             result = {"device_id": device_id, "device_data": device_data}
-            return (200, result)
+            return 200, result
         else:
             raise errors.NotFoundError("No dehydrated device available")
 
@@ -293,7 +293,7 @@ class ClaimDehydratedDeviceServlet(RestServlet):
             submission["device_id"],
         )
 
-        return (200, result)
+        return 200, result
 
 
 def register_servlets(hs: "HomeServer", http_server: HttpServer) -> None: