Skip to content

Commit

Permalink
remove un-needed curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-aurele-besner committed Jun 4, 2024
1 parent 0a62ecf commit 9aeea35
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/auto-utils/src/save.ts
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down

0 comments on commit 9aeea35

Please sign in to comment.