diff options
| author | Andreas Nedbal <andreas.nedbal@in2code.de> | 2022-05-07 07:19:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-07 14:19:15 +0900 |
| commit | a975a0971cb0aa3b684204f910fba8b714c0f5fb (patch) | |
| tree | 7feeaeae17c8f0debf42e301c20912adb1afa594 /packages/client/src/scripts/hpml | |
| parent | refactor(client): refactor settings/theme/manage to use Composition API (#8596) (diff) | |
| download | sharkey-a975a0971cb0aa3b684204f910fba8b714c0f5fb.tar.gz sharkey-a975a0971cb0aa3b684204f910fba8b714c0f5fb.tar.bz2 sharkey-a975a0971cb0aa3b684204f910fba8b714c0f5fb.zip | |
fix(client): fix lint issues in scripts (#8621)
Diffstat (limited to 'packages/client/src/scripts/hpml')
| -rw-r--r-- | packages/client/src/scripts/hpml/evaluator.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/client/src/scripts/hpml/evaluator.ts b/packages/client/src/scripts/hpml/evaluator.ts index 6329c0860e..0469a31cbb 100644 --- a/packages/client/src/scripts/hpml/evaluator.ts +++ b/packages/client/src/scripts/hpml/evaluator.ts @@ -85,7 +85,7 @@ export class Hpml { public eval() { try { this.vars.value = this.evaluateVars(); - } catch (e) { + } catch (err) { //this.onError(e); } } @@ -103,7 +103,7 @@ export class Hpml { public callAiScript(fn: string) { try { if (this.aiscript) this.aiscript.execFn(this.aiscript.scope.get(fn), []); - } catch (e) {} + } catch (err) {} } @autobind @@ -185,7 +185,7 @@ export class Hpml { if (this.aiscript) { try { return utils.valToJs(this.aiscript.scope.get(expr.value)); - } catch (e) { + } catch (err) { return null; } } else { @@ -194,7 +194,7 @@ export class Hpml { } // Define user function - if (expr.type == 'fn') { + if (expr.type === 'fn') { return { slots: expr.value.slots.map(x => x.name), exec: (slotArg: Record<string, any>) => { |