summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-05-10 17:25:16 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-05-10 17:25:16 +0900
commita3283c71ef3d858a00f6c69ee572642b0bd7fbfa (patch)
tree8a8899171b0f3f85d5c2db689b22eaa1ea2c58e3 /src/misc
parentchore(client): :art: (diff)
downloadsharkey-a3283c71ef3d858a00f6c69ee572642b0bd7fbfa.tar.gz
sharkey-a3283c71ef3d858a00f6c69ee572642b0bd7fbfa.tar.bz2
sharkey-a3283c71ef3d858a00f6c69ee572642b0bd7fbfa.zip
chore(lint): Add missing semicolons
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/count-same-renotes.ts4
-rw-r--r--src/misc/reaction-lib.ts2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/misc/count-same-renotes.ts b/src/misc/count-same-renotes.ts
index 0233bdf88e..bc1072080a 100644
--- a/src/misc/count-same-renotes.ts
+++ b/src/misc/count-same-renotes.ts
@@ -4,11 +4,11 @@ export async function countSameRenotes(userId: string, renoteId: string, exclude
// 指定したユーザーの指定したノートのリノートがいくつあるか数える
const query = Notes.createQueryBuilder('note')
.where('note.userId = :userId', { userId })
- .andWhere('note.renoteId = :renoteId', { renoteId })
+ .andWhere('note.renoteId = :renoteId', { renoteId });
// 指定した投稿を除く
if (excludeNoteId) {
- query.andWhere('note.id != :excludeNoteId', { excludeNoteId })
+ query.andWhere('note.id != :excludeNoteId', { excludeNoteId });
}
return await query.getCount();
diff --git a/src/misc/reaction-lib.ts b/src/misc/reaction-lib.ts
index e9a9d4f7c9..b393154d9c 100644
--- a/src/misc/reaction-lib.ts
+++ b/src/misc/reaction-lib.ts
@@ -78,7 +78,7 @@ export async function toDbReaction(reaction?: string | null, reacterHost?: strin
name,
});
- if (emoji) return reacterHost ? `:${name}@${reacterHost}:` : `:${name}:`
+ if (emoji) return reacterHost ? `:${name}@${reacterHost}:` : `:${name}:`;
}
return await getFallbackReaction();