From 5581edf7308596dbd04e473dee6106be84124306 Mon Sep 17 00:00:00 2001 From: Shodai Suzuki Date: Mon, 13 May 2024 22:39:46 +0900 Subject: [PATCH] fix: format to index of `hono` (#1368) --- packages/hono/src/index.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/hono/src/index.ts b/packages/hono/src/index.ts index 0b57456b6..d268e712b 100644 --- a/packages/hono/src/index.ts +++ b/packages/hono/src/index.ts @@ -199,14 +199,17 @@ const getHandlerFix = ({ const getVerbOptionGroupByTag = ( verbOptions: Record, ) => { - return Object.values(verbOptions).reduce((acc, value) => { - const tag = value.tags[0]; - if (!acc[tag]) { - acc[tag] = []; - } - acc[tag].push(value); - return acc; - }, {} as Record); + return Object.values(verbOptions).reduce( + (acc, value) => { + const tag = value.tags[0]; + if (!acc[tag]) { + acc[tag] = []; + } + acc[tag].push(value); + return acc; + }, + {} as Record, + ); }; const generateHandlers = async (