From 16ec2876d6e64076da59621f25055f1e367279d1 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Thu, 11 Jan 2024 10:43:16 +0100 Subject: [PATCH] refactor: check for undefined to detect whether WoT instance was created --- packages/core/src/servient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/servient.ts b/packages/core/src/servient.ts index 8085c9216..1a9111dfc 100644 --- a/packages/core/src/servient.ts +++ b/packages/core/src/servient.ts @@ -213,7 +213,7 @@ export default class Servient { // will return WoT object public async start(): Promise { - if (this.#wotInstance != null) { + if (this.#wotInstance !== undefined) { debug("Servient started already -> nop -> returning previous WoT implementation"); return this.#wotInstance; }