From 16a8224ed01f8e059a4d316a9b9d48116c5c76b0 Mon Sep 17 00:00:00 2001 From: Kevin Szuchet Date: Wed, 9 Aug 2023 11:04:09 +0200 Subject: [PATCH] style: Remove unnecessary braces --- src/utils/worldServers/worldServers.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils/worldServers/worldServers.ts b/src/utils/worldServers/worldServers.ts index e00b152..76d4bc8 100644 --- a/src/utils/worldServers/worldServers.ts +++ b/src/utils/worldServers/worldServers.ts @@ -1,8 +1,7 @@ export const PREVIOUSLY_LOADED_SERVERS_KEY = 'previously-loaded-servers' -export const getPreviouslyLoadedServers = () => { - return Array.from(new Set(localStorage.getItem(PREVIOUSLY_LOADED_SERVERS_KEY)?.split(',').filter(Boolean))) -} +export const getPreviouslyLoadedServers = () => + Array.from(new Set(localStorage.getItem(PREVIOUSLY_LOADED_SERVERS_KEY)?.split(',').filter(Boolean))) export const addServerToPreviouslyLoaded = (server: string) => { const previouslyLoadedServers = getPreviouslyLoadedServers() || []