1
0
Fork 0
mirror of synced 2024-06-26 18:10:24 +12:00

remove unused argument

This commit is contained in:
Nick Sweeting 2020-11-28 12:38:15 -05:00 committed by GitHub
parent 10ee6db02f
commit a846916b82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,10 +52,9 @@ def parse_html_main_index(out_dir: Path=OUTPUT_DIR) -> Iterator[str]:
def generate_index_from_links(links: List[Link], with_headers: bool):
if with_headers:
output = main_index_template(links, True)
output = main_index_template(links)
else:
output = main_index_template(links, True, MINIMAL_INDEX_TEMPLATE)
return output
output = main_index_template(links, template=MINIMAL_INDEX_TEMPLATE)
@enforce_types
def main_index_template(links: List[Link], template: str=MAIN_INDEX_TEMPLATE) -> str: