PERF404: fix
This commit is contained in:
@@ -311,10 +311,9 @@ def open_editor_for_pr() -> tuple[str, str]:
|
|||||||
with Path(temp_file_path).open() as f:
|
with Path(temp_file_path).open() as f:
|
||||||
content = f.read()
|
content = f.read()
|
||||||
|
|
||||||
lines = []
|
lines = [
|
||||||
for line in content.split("\n"):
|
line for line in content.split("\n") if not line.lstrip().startswith("#")
|
||||||
if not line.lstrip().startswith("#"):
|
]
|
||||||
lines.append(line)
|
|
||||||
|
|
||||||
cleaned_content = "\n".join(lines).strip()
|
cleaned_content = "\n".join(lines).strip()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user