Skip to content

Commit

Permalink
fix problem
Browse files Browse the repository at this point in the history
/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!?
  • Loading branch information
danielpeintner committed Sep 22, 2023
1 parent c27de2c commit 919518c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 919518c

Please sign in to comment.