Skip to content

Commit c282eb0

Browse files
⚡ Bolt: Remove comment in scripts/init.py as requested in PR review
1 parent ea3ec1f commit c282eb0

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎scripts/init.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ def update_file(filepath: str, file_replacements: list[tuple[re.Pattern, str]]):
134134
return
135135
new_content = content
136136
for pattern, replacement in file_replacements:
137-
# Performance Optimization: Escape backslashes in replacement string so re.sub handles
138-
# it directly in C without invoking a Python lambda function per match or risking Ruff B023.
139137
new_content = pattern.sub(replacement.replace("\\", "\\\\"), new_content)
140138

141139
if new_content != content:

0 commit comments

Comments
 (0)