From d7ed5c4187de6831ed3753b830dfcb02440ec65d Mon Sep 17 00:00:00 2001 From: Chummy Date: Tue, 17 Feb 2026 15:14:35 +0800 Subject: [PATCH] ci: tighten strict delta matching to changed line ranges --- scripts/ci/rust_strict_delta_gate.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scripts/ci/rust_strict_delta_gate.sh b/scripts/ci/rust_strict_delta_gate.sh index 81da507..5f4ccc7 100755 --- a/scripts/ci/rust_strict_delta_gate.sh +++ b/scripts/ci/rust_strict_delta_gate.sh @@ -176,11 +176,6 @@ with open(messages_file, "r", encoding="utf-8", errors="ignore") as f: if ranges is None: continue - if not ranges: - is_changed_line = True - best_path, best_line = path, line_start - break - for start, end in ranges: if line_end >= start and line_start <= end: is_changed_line = True