diff roundup/cgi/client.py @ 8202:276164647db5

chore(ruff): clean trailing whitespace
author John Rouillard <rouilj@ieee.org>
date Wed, 11 Dec 2024 14:29:19 -0500
parents f5d6dc28d571
children ef1333b153e3
line wrap: on
line diff
--- a/roundup/cgi/client.py	Wed Dec 11 14:21:44 2024 -0500
+++ b/roundup/cgi/client.py	Wed Dec 11 14:29:19 2024 -0500
@@ -1165,11 +1165,10 @@
 
         for secret in self.db.config.WEB_JWT_SECRET:
             try:  # handle jwt exceptions
-                token = jwt.decode(challenge, secret,
-                                   algorithms=['HS256'],
-                                   audience=self.db.config.TRACKER_WEB,
-                                   issuer=self.db.config.TRACKER_WEB)
-                return (token)
+                return jwt.decode(challenge, secret,
+                                  algorithms=['HS256'],
+                                  audience=self.db.config.TRACKER_WEB,
+                                  issuer=self.db.config.TRACKER_WEB)
 
             except jwt.exceptions.InvalidSignatureError as err:
                 # Try more signatures.
@@ -2438,7 +2437,7 @@
         '''Vary header will include the new header. This will append
            if Vary exists.'''
 
-        if ('Vary' in self.additional_headers and 
+        if ('Vary' in self.additional_headers and
             header not in self.additional_headers['Vary']):
             self.additional_headers['Vary'] += ", %s" % header
         else:

Roundup Issue Tracker: http://roundup-tracker.org/