From 9cae94b0ae1285441c3c438ae879e0cbfd473272 Mon Sep 17 00:00:00 2001 From: Alexander Kantchev Date: Wed, 10 Apr 2024 16:32:57 +0300 Subject: [PATCH] [Task (IAC-807] Fixed lint errors. Signed-off-by: Alexander Kantchev --- .../node/vro-language-server/src/server/core/HintLookup.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node/vro-language-server/src/server/core/HintLookup.ts b/packages/node/vro-language-server/src/server/core/HintLookup.ts index 9bf39acc..fb4794ed 100644 --- a/packages/node/vro-language-server/src/server/core/HintLookup.ts +++ b/packages/node/vro-language-server/src/server/core/HintLookup.ts @@ -101,7 +101,7 @@ export class HintLookup implements Disposable { this.logger.debug(`Module hint: ${JSON.stringify(module, null, 4)}`) if (module?.actions) { - return module.actions.filter(action => !!action) + return module.actions.filter((action: any) => !!action) } return [] @@ -139,7 +139,7 @@ export class HintLookup implements Disposable { for (const api of this.scriptingApi.global) { for (const cls of api.classes) { const hasConstructors = !!cls.constructors && cls.constructors.length > 0 - if ((filter.isInstantiable === undefined) || (hasConstructors === filter.isInstantiable)) { + if (filter.isInstantiable === undefined || hasConstructors === filter.isInstantiable) { result.push(cls) } }