mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 10:36:02 +00:00
Meta: Remove unnecessary enumerate
invocation
Caught by ruff.
This commit is contained in:
parent
58cfa2e40e
commit
8bfbb944d1
Notes:
github-actions[bot]
2025-06-09 15:26:46 +00:00
Author: https://github.com/trflynn89
Commit: 8bfbb944d1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5038
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/R-Goc
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue