mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 19:34:52 -04:00
Fixed code misc. quality issues (#9649)
- Merge 'isinstance' calls. - Remove unnecessary dict call outside of comprehension. - Use 'sys.exit()' calls.
This commit is contained in:
parent
d600d4506b
commit
d66f9070cd
4 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue