fix: remove duplicate code block in detect-duplicates.py
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

This commit is contained in:
Agent 2026-04-01 14:40:13 +00:00
parent e6d5d3508a
commit 834ba1e351

View file

@ -310,13 +310,6 @@ def main() -> int:
] ]
# Also filter allowed hashes from pre_dups for reporting # Also filter allowed hashes from pre_dups for reporting
pre_dups = [g for g in cur_dups if g[0] in base_dup_hashes and g[0] not in ALLOWED_HASHES] pre_dups = [g for g in cur_dups if g[0] in base_dup_hashes and g[0] not in ALLOWED_HASHES]
# Filter out allowed standard patterns that are intentionally repeated
new_dups = [
g for g in cur_dups
if g[0] not in base_dup_hashes and g[0] not in ALLOWED_HASHES
]
# Also filter allowed hashes from pre_dups for reporting
pre_dups = [g for g in cur_dups if g[0] in base_dup_hashes and g[0] not in ALLOWED_HASHES]
# Report pre-existing as info # Report pre-existing as info
if pre_ap or pre_dups: if pre_ap or pre_dups: