summary refs log tree commit diff
path: root/synapse/handlers/device.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2022-03-11 07:06:21 -0500
committerGitHub <noreply@github.com>2022-03-11 07:06:21 -0500
commitbc9dff1d9597251a15a15475cb8e8194b2d14910 (patch)
tree1ce61e281d4720fb6f9428e69a87095b35352a44 /synapse/handlers/device.py
parentNote that contributors can sign off privately (#12204) (diff)
downloadsynapse-bc9dff1d9597251a15a15475cb8e8194b2d14910.tar.xz
Remove unnecessary pass statements. (#12206)
Diffstat (limited to 'synapse/handlers/device.py')
-rw-r--r--synapse/handlers/device.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py
index d90cb259a6..d5ccaa0c37 100644
--- a/synapse/handlers/device.py
+++ b/synapse/handlers/device.py
@@ -371,7 +371,6 @@ class DeviceHandler(DeviceWorkerHandler):
                 log_kv(
                     {"reason": "User doesn't have device id.", "device_id": device_id}
                 )
-                pass
             else:
                 raise
 
@@ -414,7 +413,6 @@ class DeviceHandler(DeviceWorkerHandler):
                 # no match
                 set_tag("error", True)
                 set_tag("reason", "User doesn't have that device id.")
-                pass
             else:
                 raise