Skip to content

Commit 3780e91

Browse files
authored
Merge branch '9.0.0-dev' into feat/BomRef-affects-comparissons-equality
2 parents 2f3613f + 6350438 commit 3780e91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cyclonedx/_internal/compare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __lt__(self, other: Any) -> bool:
4242
return False
4343
if o is None:
4444
return True
45-
return True if s < o else False
45+
return bool(s < o)
4646
return False
4747

4848
def __gt__(self, other: Any) -> bool:
@@ -54,7 +54,7 @@ def __gt__(self, other: Any) -> bool:
5454
return True
5555
if o is None:
5656
return False
57-
return True if s > o else False
57+
return bool(s > o)
5858
return False
5959

6060

0 commit comments

Comments
 (0)