From 7ec8729d90c7095dbfd000cc53b7d645c44a8ad6 Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Fri, 21 Oct 2022 17:52:15 -0400 Subject: [PATCH] backend: fix lint error in remove-note.ts --- packages/backend/src/server/api/endpoints/clips/remove-note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/clips/remove-note.ts b/packages/backend/src/server/api/endpoints/clips/remove-note.ts index 3762cbb37..7987553f6 100644 --- a/packages/backend/src/server/api/endpoints/clips/remove-note.ts +++ b/packages/backend/src/server/api/endpoints/clips/remove-note.ts @@ -62,7 +62,7 @@ export default define(meta, paramDef, async (ps, user) => { clipId: clip.id, }); - if (affected == 0) { + if (affected === 0) { throw new ApiError(meta.errors.notClipped); } });