From 41f953a8c23145393aec642225f9c243cbff508f Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Fri, 7 Jul 2017 10:59:18 -0700 Subject: [PATCH] LineNode.add: return value never used --- 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 e25ddf9e03b6b..464eea2efabe1 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() {