From 41a10d9697c8424ec93ca8d2d1820705cfab1161 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 17 Nov 2021 13:56:20 +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 f9262db7..cd5a5a8b 100644 --- a/src/logging/LogItem.ts +++ b/src/logging/LogItem.ts @@ -184,7 +184,7 @@ export class LogItem implements ILogItem { * @return {[type]} [description] */ run(callback: LogCallback): T { - if (this.end) { + if (this.end !== undefined) { console.trace("log item is finished, additional logs will likely not be recorded"); } try {