@gabrielrufino/cube 1.0.23 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -116,7 +116,7 @@ var BinarySearchTree = /** @class */ (function () {
|
|
|
116
116
|
.slice(0, path.length - 1)
|
|
117
117
|
.reduce(function (accumulator, current) { return accumulator && accumulator[current]; }, this._root);
|
|
118
118
|
var child = path[path.length - 1];
|
|
119
|
-
if ((current === null || current === void 0 ? void 0 : current.left) &&
|
|
119
|
+
if ((current === null || current === void 0 ? void 0 : current.left) && current.right && parent) {
|
|
120
120
|
var head = current.right;
|
|
121
121
|
while (head.left) {
|
|
122
122
|
head = head.left;
|