From 0b2f1558e6af4295da6ba4754dd924d724c3be29 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Thu, 3 Jan 2019 15:54:54 -0800 Subject: [PATCH] Prefer using nullable marker for fields --- src/vs/base/common/event.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vs/base/common/event.ts b/src/vs/base/common/event.ts index ae776ba3967..f6b794079cf 100644 --- a/src/vs/base/common/event.ts +++ b/src/vs/base/common/event.ts @@ -462,12 +462,12 @@ export class Emitter { private static readonly _noop = function () { }; - private readonly _options: EmitterOptions | undefined; - private readonly _leakageMon: LeakageMonitor | undefined; + private readonly _options?: EmitterOptions; + private readonly _leakageMon?: LeakageMonitor; private _disposed: boolean = false; - private _event: Event | undefined; - private _deliveryQueue: [Listener, T][] | undefined; - protected _listeners: LinkedList> | undefined; + private _event?: Event; + private _deliveryQueue: [Listener, T][]; + protected _listeners?: LinkedList>; constructor(options?: EmitterOptions) { this._options = options;