summary refs log tree commit diff
path: root/synapse/push/httppusher.py
diff options
context:
space:
mode:
authorAnkit Dobhal <dobhal.ankit@protonmail.com>2021-03-22 20:48:13 +0530
committerGitHub <noreply@github.com>2021-03-22 11:18:13 -0400
commitd66f9070cd0f826e5b6630f8e1f6ed5837a3c3cb (patch)
treec9b922f44e1ff234f7b053b049cd94d5fce1f79c /synapse/push/httppusher.py
parentMerge branch 'master' into develop (diff)
downloadsynapse-d66f9070cd0f826e5b6630f8e1f6ed5837a3c3cb.tar.xz
Fixed code misc. quality issues (#9649)
- Merge 'isinstance' calls.
- Remove unnecessary dict call outside of comprehension.
- Use 'sys.exit()' calls.
Diffstat (limited to 'synapse/push/httppusher.py')
-rw-r--r--synapse/push/httppusher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/push/httppusher.py b/synapse/push/httppusher.py
index eb6de8ba72..026134ae26 100644
--- a/synapse/push/httppusher.py
+++ b/synapse/push/httppusher.py
@@ -290,7 +290,7 @@ class HttpPusher(Pusher):
         if rejected is False:
             return False
 
-        if isinstance(rejected, list) or isinstance(rejected, tuple):
+        if isinstance(rejected, (list, tuple)):
             for pk in rejected:
                 if pk != self.pushkey:
                     # for sanity, we only remove the pushkey if it