mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Meta: Remove unnecessary enumerate invocation
Caught by ruff.
This commit is contained in:
Notes:
github-actions[bot]
2025-06-09 15:26:46 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/8bfbb944d1a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5038 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/R-Goc
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user