fix diff file
Some checks failed
AI Reviewer / review (pull_request) Failing after 24s

This commit is contained in:
2026-02-02 20:18:44 +00:00
parent 73787f6dfa
commit 1354e09831
3 changed files with 4 additions and 4 deletions

View File

@@ -89,9 +89,9 @@ def parse_diff(diff_text: str) -> list[FileDiff]:
if line.startswith("diff --git "):
flush_file()
header_lines = [line]
p = line.split()
if len(parts) >= 4 and p[3].startswith("b/"):
current_path = p[3][len("b/") :]
parts = line.split()
if len(parts) >= 4 and parts[3].startswith("b/"):
current_path = parts[3][len("b/") :]
else:
current_path = None
continue