Merge pull request #65453 from gangachris/strict-null-check

Enable strict null check for ./vs/base/test/common/history.test.ts
pull/65474/head
Sandeep Somavarapu 2018-12-20 11:09:21 +01:00 committed by GitHub
commit ce2987b41e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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",

View File

@ -113,8 +113,8 @@ suite('History Navigator', () => {
assert.equal(testObject.current(), undefined);
});
function toArray(historyNavigator: HistoryNavigator<string>): string[] {
let result: string[] = [];
function toArray(historyNavigator: HistoryNavigator<string>): Array<string | null> {
let result: Array<string | null> = [];
historyNavigator.first();
if (historyNavigator.current()) {
do {