From 3f65e0759ce246ccd4267d3059170a2dbf2e2f04 Mon Sep 17 00:00:00 2001 From: Coki Date: Thu, 18 Jul 2024 13:52:43 +0800 Subject: [PATCH] style: reformat return statement in useIndex hook --- app/components/editor/hooks/useIndex.tsx | 30 ++++-------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/app/components/editor/hooks/useIndex.tsx b/app/components/editor/hooks/useIndex.tsx index b82688f..2c903f1 100644 --- a/app/components/editor/hooks/useIndex.tsx +++ b/app/components/editor/hooks/useIndex.tsx @@ -86,29 +86,9 @@ export default function useIndex() { } } return { - modelKind, - setModelKind, - modelText, - setModelText, - policy, - setPolicy, - request, - setRequest, - echo, - setEcho, - requestResult, - setRequestResult, - customConfig, - setCustomConfig, - share, - setShare, - enforceContextData, - setEnforceContextData, - setPolicyPersistent, - setModelTextPersistent, - setCustomConfigPersistent, - setRequestPersistent, - setEnforceContextDataPersistent, - handleShare, - }; + modelKind, setModelKind, modelText, setModelText, policy, setPolicy, request, + setRequest, echo, setEcho, requestResult, setRequestResult, customConfig, setCustomConfig, share, setShare, + enforceContextData, setEnforceContextData, setPolicyPersistent, setModelTextPersistent, + setCustomConfigPersistent, setRequestPersistent, setEnforceContextDataPersistent, handleShare, + } ; }