summary refs log tree commit diff
path: root/synapse/util/macaroons.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-08-15 08:11:20 -0400
committerH. Shay <hillerys@element.io>2023-08-16 12:02:11 -0700
commitb150b3626da5b4b90c7fbbcc4479351baf4df86d (patch)
treeee0bc75132dc2ebc06a98b1a5a92d3dc44daab24 /synapse/util/macaroons.py
parent1.90.0 (diff)
downloadsynapse-b150b3626da5b4b90c7fbbcc4479351baf4df86d.tar.xz
Run pyupgrade for python 3.7 & 3.8. (#16110)
Diffstat (limited to 'synapse/util/macaroons.py')
-rw-r--r--synapse/util/macaroons.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/macaroons.py b/synapse/util/macaroons.py
index 644c341e8c..db6c40a3e1 100644
--- a/synapse/util/macaroons.py
+++ b/synapse/util/macaroons.py
@@ -218,7 +218,7 @@ class MacaroonGenerator:
         # to avoid validating those as guest tokens, we explicitely verify if
         # the macaroon includes the "guest = true" caveat.
         is_guest = any(
-            (caveat.caveat_id == "guest = true" for caveat in macaroon.caveats)
+            caveat.caveat_id == "guest = true" for caveat in macaroon.caveats
         )
 
         if not is_guest: