From d05848790c175765ab58416db2f161d678355193 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Fri, 22 Sep 2023 23:58:31 +0200 Subject: [PATCH] fix: lint --- packages/backend/src/core/NoteEditService.ts | 2 -- packages/frontend/src/scripts/use-note-capture.ts | 1 - 2 files changed, 3 deletions(-) diff --git a/packages/backend/src/core/NoteEditService.ts b/packages/backend/src/core/NoteEditService.ts index 21d7758019..81a4930135 100644 --- a/packages/backend/src/core/NoteEditService.ts +++ b/packages/backend/src/core/NoteEditService.ts @@ -211,7 +211,6 @@ export class NoteEditService implements OnApplicationShutdown { createdAt: MiUser['createdAt']; isBot: MiUser['isBot']; }, editid: MiNote['id'], data: Option, silent = false): Promise { - if (!editid) { throw new Error('fail'); } @@ -447,7 +446,6 @@ export class NoteEditService implements OnApplicationShutdown { createdAt: MiUser['createdAt']; isBot: MiUser['isBot']; }, data: Option, silent: boolean, tags: string[], mentionedUsers: MinimumUser[]) { - // Register host if (this.userEntityService.isRemoteUser(user)) { this.federatedInstanceService.fetch(user.host).then(async i => { diff --git a/packages/frontend/src/scripts/use-note-capture.ts b/packages/frontend/src/scripts/use-note-capture.ts index 088e1d6c83..299159cfa3 100644 --- a/packages/frontend/src/scripts/use-note-capture.ts +++ b/packages/frontend/src/scripts/use-note-capture.ts @@ -91,7 +91,6 @@ export function useNoteCapture(props: { }); break; } - } }