Skip to content

Commit

Permalink
f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Jan 10, 2025
1 parent db02d8e commit dd4412b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ci_relay/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ async def health(request):
gitlab_ok = False

status = 200 if github_ok and gitlab_ok else 500
text = f"GitHub: {"ok" if github_ok else "not ok"}, GitLab: {"ok" if gitlab_ok else "not ok"}"
github_str = "ok" if github_ok else "not ok"
gitlab_str = "ok" if gitlab_ok else "not ok"
text = f"GitHub: {github_str}, GitLab: {gitlab_str}"
return response.text(text, status=status)

async def handle_webhook(request):
Expand Down

0 comments on commit dd4412b

Please sign in to comment.