summaryrefslogtreecommitdiff
path: root/packages/client/src/scripts
diff options
context:
space:
mode:
authorJohann150 <johann.galle@protonmail.com>2022-07-04 15:59:24 +0200
committerJohann150 <johann.galle@protonmail.com>2022-07-04 15:59:24 +0200
commitf14d5886f29617f0f041a57763832ce9e664e0c6 (patch)
tree2fcad3ba8e370352839f8f47b2a634f86da67f4e /packages/client/src/scripts
parentfix(lint): semicolong spacing (diff)
downloadmisskey-f14d5886f29617f0f041a57763832ce9e664e0c6.tar.gz
misskey-f14d5886f29617f0f041a57763832ce9e664e0c6.tar.bz2
misskey-f14d5886f29617f0f041a57763832ce9e664e0c6.zip
fix lint padded-blocks
Diffstat (limited to 'packages/client/src/scripts')
-rw-r--r--packages/client/src/scripts/gen-search-query.ts1
-rw-r--r--packages/client/src/scripts/hpml/evaluator.ts1
-rw-r--r--packages/client/src/scripts/hpml/lib.ts1
3 files changed, 0 insertions, 3 deletions
diff --git a/packages/client/src/scripts/gen-search-query.ts b/packages/client/src/scripts/gen-search-query.ts
index 57a06c280c..b413cbbab1 100644
--- a/packages/client/src/scripts/gen-search-query.ts
+++ b/packages/client/src/scripts/gen-search-query.ts
@@ -21,7 +21,6 @@ export async function genSearchQuery(v: any, q: string) {
}
}
}
-
}
return {
query: q.split(' ').filter(x => !x.startsWith('/') && !x.startsWith('@')).join(' '),
diff --git a/packages/client/src/scripts/hpml/evaluator.ts b/packages/client/src/scripts/hpml/evaluator.ts
index 8106687b61..10023edffb 100644
--- a/packages/client/src/scripts/hpml/evaluator.ts
+++ b/packages/client/src/scripts/hpml/evaluator.ts
@@ -159,7 +159,6 @@ export class Hpml {
@autobind
private evaluate(expr: Expr, scope: HpmlScope): any {
-
if (isLiteralValue(expr)) {
if (expr.type === null) {
return null;
diff --git a/packages/client/src/scripts/hpml/lib.ts b/packages/client/src/scripts/hpml/lib.ts
index 01a44ffcdf..558c780f44 100644
--- a/packages/client/src/scripts/hpml/lib.ts
+++ b/packages/client/src/scripts/hpml/lib.ts
@@ -170,7 +170,6 @@ export const funcDefs: Record<string, { in: any[]; out: any; category: string; i
};
export function initHpmlLib(expr: Expr, scope: HpmlScope, randomSeed: string, visitor?: any) {
-
const date = new Date();
const day = `${visitor ? visitor.id : ''} ${date.getFullYear()}/${date.getMonth() + 1}/${date.getDate()}`;