Fixed Inappropriate Logical Expression (#11203)

Signed-off-by: fazledyn-or <ataf@openrefactory.com>
This commit is contained in:
Ataf Fazledin Ahamed 2024-01-16 14:43:33 +06:00 committed by GitHub
parent 4b6f688344
commit 0101dd42dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -451,7 +451,7 @@ class RedBlackTree:
"""Returns true iff this node is the left child of its parent."""
if self.parent is None:
return False
return self.parent.left is self.parent.left is self
return self.parent.left is self
def is_right(self) -> bool:
"""Returns true iff this node is the right child of its parent."""