去掉了一个多余的Assert
This commit is contained in:
parent
c19004653a
commit
fb1fb4c14e
|
|
@ -636,7 +636,7 @@ var ListNode = /** @class */ (function (_super) {
|
|||
};
|
||||
ListNode.prototype.addChild = function (path, node) {
|
||||
(0, assert_1.assert)(!this.children[path]);
|
||||
(0, assert_1.assert)(path.length > 10, 'List的path改成了id');
|
||||
// assert(path.length > 10, 'List的path改成了id');
|
||||
this.children[path] = node;
|
||||
};
|
||||
ListNode.prototype.removeChild = function (path) {
|
||||
|
|
|
|||
|
|
@ -672,7 +672,7 @@ class ListNode<
|
|||
|
||||
addChild(path: string, node: SingleNode<ED, T, Cxt, FrontCxt, AD>) {
|
||||
assert(!this.children[path]);
|
||||
assert(path.length > 10, 'List的path改成了id');
|
||||
// assert(path.length > 10, 'List的path改成了id');
|
||||
this.children[path] = node;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue