未验证 提交 626f9093 编写于 作者: P pi1024e 提交者: GitHub

Update rangeMap.ts

上级 4c07fbaa
......@@ -113,11 +113,11 @@ export class RangeMap {
get count(): number {
const len = this.groups.length;
if (len) {
return this.groups[len - 1].range.end;
if (!len) {
return 0;
}
return 0;
return this.groups[len - 1].range.end;
}
/**
......@@ -190,4 +190,4 @@ export class RangeMap {
dispose() {
this.groups = null!; // StrictNullOverride: nulling out ok in dispose
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册