Skip to content

Commit 16ec287

Browse files
refactor: check for undefined to detect whether WoT instance was created
1 parent aa15371 commit 16ec287

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/src/servient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export default class Servient {
213213

214214
// will return WoT object
215215
public async start(): Promise<typeof WoT> {
216-
if (this.#wotInstance != null) {
216+
if (this.#wotInstance !== undefined) {
217217
debug("Servient started already -> nop -> returning previous WoT implementation");
218218
return this.#wotInstance;
219219
}

0 commit comments

Comments
 (0)