[stable-2.14] ansible-test - Remove pointless comparison (#80168)

(cherry picked from commit 31658031ed)

Co-authored-by: Matt Clay <matt@mystile.com>
pull/80235/head
Matt Clay 2 years ago
parent 4a3f5b7167
commit bea9a2acf7

@ -0,0 +1,2 @@
bugfixes:
- ansible-test - Removed pointless comparison in diff evaluation logic.

@ -47,7 +47,7 @@ def calculate_confidence(path: str, line: int, metadata: Metadata) -> int:
return 0
# changes were made to the same file and line
if any(r[0] <= line <= r[1] in r for r in ranges):
if any(r[0] <= line <= r[1] for r in ranges):
return 100
# changes were made to the same file and the line number is unknown

Loading…
Cancel
Save