fix(wavl): do not check for v if not needed
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
f66dec1e03
commit
458ffdb3ff
1 changed files with 1 additions and 1 deletions
2
wavl.py
2
wavl.py
|
@ -50,7 +50,7 @@ class WAVLTree(AVLTree[T]):
|
|||
w_diff = Node.difference(w, y)
|
||||
logger.debug(f"w_diff = {w_diff}")
|
||||
|
||||
assert v
|
||||
# assert v
|
||||
if w_diff == 1 and y.parent:
|
||||
logger.debug(f"y.parent = {y.parent}")
|
||||
new_root = rotate_left(y.parent)
|
||||
|
|
Loading…
Reference in a new issue