From bec935777767519cca0c7b26e0b548da3ff1925d Mon Sep 17 00:00:00 2001 From: gangachris Date: Thu, 20 Dec 2018 09:19:07 +0300 Subject: [PATCH] enable strict null check --- src/tsconfig.strictNullChecks.json | 1 + src/vs/base/test/common/history.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tsconfig.strictNullChecks.json b/src/tsconfig.strictNullChecks.json index 6a2a529b032..1a2553d2103 100644 --- a/src/tsconfig.strictNullChecks.json +++ b/src/tsconfig.strictNullChecks.json @@ -133,6 +133,7 @@ "./vs/base/test/common/filters.perf.test.ts", "./vs/base/test/common/filters.test.ts", "./vs/base/test/common/hash.test.ts", + "./vs/base/test/common/history.test.ts", "./vs/base/test/common/json.test.ts", "./vs/base/test/common/jsonEdit.test.ts", "./vs/base/test/common/jsonFormatter.test.ts", diff --git a/src/vs/base/test/common/history.test.ts b/src/vs/base/test/common/history.test.ts index b5d274656fb..9c93a0adeb5 100644 --- a/src/vs/base/test/common/history.test.ts +++ b/src/vs/base/test/common/history.test.ts @@ -113,8 +113,8 @@ suite('History Navigator', () => { assert.equal(testObject.current(), undefined); }); - function toArray(historyNavigator: HistoryNavigator): string[] { - let result: string[] = []; + function toArray(historyNavigator: HistoryNavigator): Array { + let result: Array = []; historyNavigator.first(); if (historyNavigator.current()) { do {