Initialize in field

This commit is contained in:
RMidhunSuresh 2021-11-09 17:36:18 +05:30
parent 4c5d028509
commit 7893a121c0

View file

@ -23,11 +23,10 @@ import {Platform} from "../platform/web/Platform.js";
type LabelOrValues = string | {l: string; [key: string]: unknown}; type LabelOrValues = string | {l: string; [key: string]: unknown};
export abstract class BaseLogger { export abstract class BaseLogger {
protected _openItems: Set<LogItem>; protected _openItems: Set<LogItem> = new Set();
protected _platform: Platform; protected _platform: Platform;
constructor({platform}) { constructor({platform}) {
this._openItems = new Set();
this._platform = platform; this._platform = platform;
} }