ci: tighten strict delta matching to changed line ranges

This commit is contained in:
Chummy 2026-02-17 15:14:35 +08:00
parent b81e4c6c50
commit d7ed5c4187

View file

@ -176,11 +176,6 @@ with open(messages_file, "r", encoding="utf-8", errors="ignore") as f:
if ranges is None: if ranges is None:
continue continue
if not ranges:
is_changed_line = True
best_path, best_line = path, line_start
break
for start, end in ranges: for start, end in ranges:
if line_end >= start and line_start <= end: if line_end >= start and line_start <= end:
is_changed_line = True is_changed_line = True