Skip to content

Commit c761b7d

Browse files
committed
chore(ruff): clean trailing whitespace
1 parent d8c32f5 commit c761b7d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

roundup/cgi/client.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,11 +1165,10 @@ def authenticate_bearer_token(self, challenge):
11651165

11661166
for secret in self.db.config.WEB_JWT_SECRET:
11671167
try: # handle jwt exceptions
1168-
token = jwt.decode(challenge, secret,
1169-
algorithms=['HS256'],
1170-
audience=self.db.config.TRACKER_WEB,
1171-
issuer=self.db.config.TRACKER_WEB)
1172-
return (token)
1168+
return jwt.decode(challenge, secret,
1169+
algorithms=['HS256'],
1170+
audience=self.db.config.TRACKER_WEB,
1171+
issuer=self.db.config.TRACKER_WEB)
11731172

11741173
except jwt.exceptions.InvalidSignatureError as err:
11751174
# Try more signatures.
@@ -2438,7 +2437,7 @@ def setVary(self, header):
24382437
'''Vary header will include the new header. This will append
24392438
if Vary exists.'''
24402439

2441-
if ('Vary' in self.additional_headers and
2440+
if ('Vary' in self.additional_headers and
24422441
header not in self.additional_headers['Vary']):
24432442
self.additional_headers['Vary'] += ", %s" % header
24442443
else:

0 commit comments

Comments
 (0)