explicitly check for undefined

This commit is contained in:
Bruno Windels 2021-11-17 13:56:20 +01:00
parent fde0163b97
commit 41a10d9697

View file

@ -184,7 +184,7 @@ export class LogItem implements ILogItem {
* @return {[type]} [description] * @return {[type]} [description]
*/ */
run<T>(callback: LogCallback<T>): T { run<T>(callback: LogCallback<T>): T {
if (this.end) { if (this.end !== undefined) {
console.trace("log item is finished, additional logs will likely not be recorded"); console.trace("log item is finished, additional logs will likely not be recorded");
} }
try { try {