Skip to content

Commit 0101dd4

Browse files
authored
Fixed Inappropriate Logical Expression (#11203)
Signed-off-by: fazledyn-or <[email protected]>
1 parent 4b6f688 commit 0101dd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)