From 8d2f655e51ad355bf3f74f062ffb4279cc5437bf Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Fri, 22 Sep 2023 23:03:39 +0200 Subject: [PATCH] fix: a few lint problems --- packages/backend/src/core/NoteEditService.ts | 6 +++--- packages/frontend/src/scripts/get-note-menu.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/core/NoteEditService.ts b/packages/backend/src/core/NoteEditService.ts index 35ff02f78..1a34fa115 100644 --- a/packages/backend/src/core/NoteEditService.ts +++ b/packages/backend/src/core/NoteEditService.ts @@ -214,7 +214,7 @@ export class NoteEditService implements OnApplicationShutdown { if (!editid) { throw new Error('fail'); - }; + } const oldnote = await this.notesRepository.findOneBy({ id: editid, @@ -222,11 +222,11 @@ export class NoteEditService implements OnApplicationShutdown { if (oldnote == null) { throw new Error('no such note'); - }; + } if (oldnote.userId !== user.id) { throw new Error('not the author'); - }; + } // チャンネル外にリプライしたら対象のスコープに合わせる // (クライアントサイドでやっても良い処理だと思うけどとりあえずサーバーサイドで) diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index 476db3e9a..a4f2f4bde 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -366,7 +366,7 @@ export function getNoteMenu(props: { text: i18n.ts.edit, danger: true, action: edit, - }: undefined, + } : undefined, { icon: 'ti ti-edit', text: i18n.ts.deleteAndEdit,