去掉了一个多余的Assert

This commit is contained in:
Xu Chang 2023-02-24 10:41:30 +08:00
parent c19004653a
commit fb1fb4c14e
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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;
}