Meta: Remove unnecessary enumerate invocation

Caught by ruff.
This commit is contained in:
Timothy Flynn 2025-06-09 10:38:02 -04:00 committed by Tim Flynn
commit 8bfbb944d1
Notes: github-actions[bot] 2025-06-09 15:26:46 +00:00

View file

@ -163,7 +163,7 @@ def modify_sources(files, resources: list[ResourceAndType]) -> None:
page_source = f.read()
# Iterate all scripts and overwrite the src attribute
for i, resource in enumerate(map(lambda r: r.resource, resources)):
for resource in map(lambda r: r.resource, resources):
if resource.startswith("/"):
new_src_value = parent_folder_path + resource[1::]
page_source = page_source.replace(resource, new_src_value)