From 887128356e04bd75f26d28393f41adfabba90173 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Tue, 12 Sep 2023 14:29:02 -1000 Subject: [PATCH] Add stricter ESLint rules --- server/api/v1/accounts/[id]/statuses.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/api/v1/accounts/[id]/statuses.ts b/server/api/v1/accounts/[id]/statuses.ts index 1e5db16e..9913012f 100644 --- a/server/api/v1/accounts/[id]/statuses.ts +++ b/server/api/v1/accounts/[id]/statuses.ts @@ -31,8 +31,7 @@ export default async ( id, }); - if (!user) - return errorResponse("User not found", 404) + if (!user) return errorResponse("User not found", 404); const statuses = await Status.find({ where: { @@ -47,5 +46,5 @@ export default async ( take: limit ?? 20, }); - return jsonResponse(statuses.map((status) => status.toAPI())); + return jsonResponse(statuses.map(status => status.toAPI())); };