From e4a69174dbcf3d1899235a9826b8cebd8380ad56 Mon Sep 17 00:00:00 2001 From: Andy Date: Fri, 7 Jul 2017 14:00:09 -0700 Subject: [PATCH] LineNode.add: return value never used (#17016) --- src/server/scriptVersionCache.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/scriptVersionCache.ts b/src/server/scriptVersionCache.ts index e25ddf9e03b..464eea2efab 100644 --- a/src/server/scriptVersionCache.ts +++ b/src/server/scriptVersionCache.ts @@ -851,9 +851,9 @@ namespace ts.server { } // assume there is room for the item; return true if more room - add(collection: LineCollection) { + add(collection: LineCollection): void { this.children.push(collection); - return (this.children.length < lineCollectionCapacity); + Debug.assert(this.children.length <= lineCollectionCapacity); } charCount() {