Skip to content

Commit

Permalink
Pep line length to make github happy
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendwolff committed Jul 2, 2019
1 parent 7bd98ea commit 6a8a634
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flask_jwt_extended/view_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,15 @@ def _decode_jwt_from_request(request_type):
# add the functions in the order specified in JWT_TOKEN_LOCATION
for location in locations:
if location == 'cookies' and config.jwt_in_cookies:
get_encoded_token_functions.append(lambda: _decode_jwt_from_cookies(request_type))
get_encoded_token_functions.append(
lambda: _decode_jwt_from_cookies(request_type))
if location == 'query_string' and config.jwt_in_query_string:
get_encoded_token_functions.append(_decode_jwt_from_query_string)
if location == 'headers' and config.jwt_in_headers:
get_encoded_token_functions.append(_decode_jwt_from_headers)
if location == 'json' and config.jwt_in_json:
get_encoded_token_functions.append(lambda: _decode_jwt_from_json(request_type))
get_encoded_token_functions.append(
lambda: _decode_jwt_from_json(request_type))

# Try to find the token from one of these locations. It only needs to exist
# in one place to be valid (not every location).
Expand Down

0 comments on commit 6a8a634

Please sign in to comment.