mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Make some ruff fixes (#8154)
* Make some ruff fixes * Undo manual fix * Undo manual fix * Updates from ruff=0.0.251
This commit is contained in:
@ -60,7 +60,7 @@ class BinarySearchTree:
|
||||
else: # Tree is not empty
|
||||
parent_node = self.root # from root
|
||||
if parent_node is None:
|
||||
return None
|
||||
return
|
||||
while True: # While we don't get to a leaf
|
||||
if value < parent_node.value: # We go left
|
||||
if parent_node.left is None:
|
||||
|
Reference in New Issue
Block a user