Skip to content

Commit 107e69b

Browse files
CM-55207-Fix ruff
1 parent 7da3f98 commit 107e69b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cycode/cli/files_collector/commit_range_documents.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,14 +487,12 @@ def normalize_commit_range(commit_range: str, path: str) -> str:
487487
from_commit_rev, to_commit_rev, separator = parse_commit_range(commit_range, path)
488488
if from_commit_rev is None or to_commit_rev is None:
489489
logger.warning(
490-
'Failed to parse commit range "%s", falling back to raw string. This may cause unexpected behavior.',
490+
'Failed to parse commit range "%s", falling back to raw string.',
491491
commit_range
492492
)
493-
# Fall back to using the raw commit_range string
494493
return commit_range
495494

496495
# Construct a normalized range string using the original separator for iter_commits
497-
# This preserves the semantics of two-dot vs three-dot syntax
498496
normalized_commit_range = f'{from_commit_rev}{separator}{to_commit_rev}'
499497
logger.debug(
500498
'Normalized commit range "%s" to "%s"',

0 commit comments

Comments
 (0)