Skip to content

Commit

Permalink
fix: connaisseur/flask_application.py:96:4: C0103: Variable name "l" …
Browse files Browse the repository at this point in the history
…does not conform to snake_case naming style (invalid-name)
  • Loading branch information
masaruhoshi committed Feb 8, 2022
1 parent 37368e4 commit 1498adc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions connaisseur/flask_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ def mutate():


def metrics_label(response, label):
l = response.get_json(silent=True)
if l:
json_response = response.get_json(silent=True)
if json_response:
if label == "allowed":
return l["response"]["allowed"]
return json_response["response"]["allowed"]
elif label == "status_code":
return l["response"]["status"]["code"]
return l
return json_response["response"]["status"]["code"]
return json_response


# health probe
Expand Down

0 comments on commit 1498adc

Please sign in to comment.