From 9aeea3501953372004e738cb9a1644c8aa14c794 Mon Sep 17 00:00:00 2001 From: Marc-Aurele Besner <82244926+marc-aurele-besner@users.noreply.github.com> Date: Tue, 4 Jun 2024 13:55:32 -0400 Subject: [PATCH] remove un-needed curly braces --- packages/auto-utils/src/save.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/auto-utils/src/save.ts b/packages/auto-utils/src/save.ts index c4598193..a83c084f 100644 --- a/packages/auto-utils/src/save.ts +++ b/packages/auto-utils/src/save.ts @@ -1,10 +1,7 @@ export const save = async (key: string, value: any) => { // detect if we are in the browser or in node - if (typeof window !== 'undefined') { - await saveOnLocalStorage(key, value) - } else { - await saveOnFileSystem(key, value) - } + if (typeof window !== 'undefined') await saveOnLocalStorage(key, value) + else await saveOnFileSystem(key, value) } export const saveOnLocalStorage = async (key: string, value: any) => {