From 4030a4918d13ebfa72f7d1f7205546fa3fda6a12 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 17 Nov 2021 13:57:11 +0100 Subject: [PATCH] explicitly check for undefined --- src/logging/LogItem.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logging/LogItem.ts b/src/logging/LogItem.ts index cd5a5a8b..da009b06 100644 --- a/src/logging/LogItem.ts +++ b/src/logging/LogItem.ts @@ -210,7 +210,7 @@ export class LogItem implements ILogItem { * @internal shouldn't typically be called by hand. allows to force finish if a promise is still running when closing the app */ finish(): void { - if (!this.end) { + if (this.end === undefined) { if (this._children) { for(const c of this._children) { c.finish();