revert api function changes

This commit is contained in:
Dennis Eichhorn 2023-10-18 12:30:42 +00:00
parent dcc60246df
commit 9c86108a0f

View File

@ -257,9 +257,7 @@ class BinarySearchTree
}
}
if ($temp !== null) {
$temp->parent = $node->parent;
}
$temp->parent = $node?->parent;
$node = null;
@ -280,9 +278,7 @@ class BinarySearchTree
}
}
if ($temp !== null) {
$temp->parent = $node->parent;
}
$temp->parent = $node?->parent;
$node = null;