mirror of https://github.com/tiangolo/fastapi.git
Remove commented code
This commit is contained in:
parent
e076f651e7
commit
50dd09a7b2
|
|
@ -411,13 +411,7 @@ def _construct_html_link(
|
|||
for attribute in attributes:
|
||||
if attribute["name"] == "href":
|
||||
original_url = attribute["value"]
|
||||
|
||||
url = _add_lang_code_to_url(original_url, lang_code)
|
||||
|
||||
# if original_url.startswith(TIANGOLO_COM):
|
||||
# url = original_url.replace(TIANGOLO_COM, f"{TIANGOLO_COM}/{lang_code}")
|
||||
# else:
|
||||
# url = original_url
|
||||
attributes_upd.append(
|
||||
HTMLLinkAttribute(name="href", quote=attribute["quote"], value=url)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue