Skip to content

Commit

Permalink
Unused reference
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas ONeil <lucasoneil@gmail.com>
  • Loading branch information
loneil committed Jun 17, 2024
1 parent b2f5276 commit b04fb72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions oidc-controller/api/routers/presentation_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ async def send_connectionless_proof_req(
If the user scanes the QR code with a mobile camera,
they will be redirected to a help page.
"""
data = {}
# First prepare the response depending on the redirect url
if ".html" in settings.CONTROLLER_CAMERA_REDIRECT_URL:
response = RedirectResponse(settings.CONTROLLER_CAMERA_REDIRECT_URL)
Expand All @@ -34,7 +33,7 @@ async def send_connectionless_proof_req(
f"api/templates/{settings.CONTROLLER_CAMERA_REDIRECT_URL}.html", "r"
).read()
template = Template(template_file)
response = HTMLResponse(template.render(data))
response = HTMLResponse(template.render())

if "text/html" in req.headers.get("accept"):
logger.info("Redirecting to instructions page")
Expand Down

0 comments on commit b04fb72

Please sign in to comment.