Skip to content

Commit 1148165

Browse files
committed
refactor: simplify ComparableTuple
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 7c20c8e commit 1148165

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 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 s > o
5858
return False
5959

6060

0 commit comments

Comments
 (0)