ansible-test - Remove pointless comparison (#80168)

pull/80172/head
Matt Clay 2 years ago committed by GitHub
parent cfa7acbc19
commit 31658031ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 return 0
# changes were made to the same file and line # 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 return 100
# changes were made to the same file and the line number is unknown # changes were made to the same file and the line number is unknown

Loading…
Cancel
Save