From 919518c8de083ab5d31a0bafb58370f785bb0bcb Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Fri, 22 Sep 2023 15:19:06 +0200 Subject: [PATCH] fix problem /home/runner/work/node-wot/node-wot/packages/core/src/helpers.ts Error: 256:50 error Unexpected any value in conditional. An explicit comparison or type cast is required @typescript-eslint/strict-boolean-expressions Note: Locally I do not see this issue!? --- packages/core/src/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/helpers.ts b/packages/core/src/helpers.ts index fffd57154..18e5db325 100644 --- a/packages/core/src/helpers.ts +++ b/packages/core/src/helpers.ts @@ -253,7 +253,7 @@ export default class Helpers implements Resolver { * Helper function to validate an ExposedThingInit */ public static validateExposedThingInit(data: ExposedThingInit): { valid: boolean; errors?: string } { - if (data["@type"] === "tm:ThingModel" || ThingModelHelpers.isThingModel(data)) { + if (data["@type"] === "tm:ThingModel" || ThingModelHelpers.isThingModel(data) === true) { return { valid: false, errors: "ThingModel declaration is not supported",