Skip to content

Commit e4a6917

Browse files
author
Andy
authored
LineNode.add: return value never used (#17016)
1 parent 31ce6cf commit e4a6917

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/scriptVersionCache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,9 +851,9 @@ namespace ts.server {
851851
}
852852

853853
// assume there is room for the item; return true if more room
854-
add(collection: LineCollection) {
854+
add(collection: LineCollection): void {
855855
this.children.push(collection);
856-
return (this.children.length < lineCollectionCapacity);
856+
Debug.assert(this.children.length <= lineCollectionCapacity);
857857
}
858858

859859
charCount() {

0 commit comments

Comments
 (0)