Skip to content

Commit 618abf2

Browse files
fazledyn-orsedatguzelsemme
authored andcommitted
Fixed Inappropriate Logical Expression (TheAlgorithms#11203)
Signed-off-by: fazledyn-or <[email protected]>
1 parent c06bd90 commit 618abf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: data_structures/binary_tree/red_black_tree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def is_left(self) -> bool:
451451
"""Returns true iff this node is the left child of its parent."""
452452
if self.parent is None:
453453
return False
454-
return self.parent.left is self.parent.left is self
454+
return self.parent.left is self
455455

456456
def is_right(self) -> bool:
457457
"""Returns true iff this node is the right child of its parent."""

0 commit comments

Comments
 (0)