PERF404: fix

This commit is contained in:
Jörg Thalheim
2025-08-20 15:59:52 +02:00
parent b3cafa4a8c
commit 6e88046fd4

View File

@@ -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()