mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
Fixed Inappropriate Logical Expression (#11203)
Signed-off-by: fazledyn-or <ataf@openrefactory.com>
This commit is contained in:
parent
4b6f688344
commit
0101dd42dc
|
@ -451,7 +451,7 @@ class RedBlackTree:
|
||||||
"""Returns true iff this node is the left child of its parent."""
|
"""Returns true iff this node is the left child of its parent."""
|
||||||
if self.parent is None:
|
if self.parent is None:
|
||||||
return False
|
return False
|
||||||
return self.parent.left is self.parent.left is self
|
return self.parent.left is self
|
||||||
|
|
||||||
def is_right(self) -> bool:
|
def is_right(self) -> bool:
|
||||||
"""Returns true iff this node is the right child of its parent."""
|
"""Returns true iff this node is the right child of its parent."""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user