summaryrefslogtreecommitdiff
path: root/packages/client/src/scripts/hpml/evaluator.ts
diff options
context:
space:
mode:
authorAndreas Nedbal <andreas.nedbal@in2code.de>2022-05-07 07:19:15 +0200
committerGitHub <noreply@github.com>2022-05-07 14:19:15 +0900
commita975a0971cb0aa3b684204f910fba8b714c0f5fb (patch)
tree7feeaeae17c8f0debf42e301c20912adb1afa594 /packages/client/src/scripts/hpml/evaluator.ts
parentrefactor(client): refactor settings/theme/manage to use Composition API (#8596) (diff)
downloadsharkey-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/evaluator.ts')
-rw-r--r--packages/client/src/scripts/hpml/evaluator.ts8
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>) => {