From 11b943278a2550af9f7fc5fcf8815e18ed6a5e1d Mon Sep 17 00:00:00 2001 From: Chris Ganga Date: Thu, 20 Dec 2018 08:54:24 +0300 Subject: [PATCH] enable strict null check (#65444) --- src/tsconfig.strictNullChecks.json | 1 + src/vs/base/test/common/event.test.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tsconfig.strictNullChecks.json b/src/tsconfig.strictNullChecks.json index f1626caf6af..a339a9d3e9a 100644 --- a/src/tsconfig.strictNullChecks.json +++ b/src/tsconfig.strictNullChecks.json @@ -129,6 +129,7 @@ "./vs/base/test/common/decorators.test.ts", "./vs/base/test/common/diff/diff.test.ts", "./vs/base/test/common/errors.test.ts", + "./vs/base/test/common/event.test.ts", "./vs/base/test/common/filters.perf.test.ts", "./vs/base/test/common/filters.test.ts", "./vs/base/test/common/hash.test.ts", diff --git a/src/vs/base/test/common/event.test.ts b/src/vs/base/test/common/event.test.ts index 35bae3206a9..b042b60fe83 100644 --- a/src/vs/base/test/common/event.test.ts +++ b/src/vs/base/test/common/event.test.ts @@ -71,7 +71,7 @@ suite('Event', function () { // unhook listener while (bucket.length) { - bucket.pop().dispose(); + bucket.pop()!.dispose(); } // noop