From 66b570bc7528b9505dff49cebc8ec6222e265aab Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Tue, 8 Oct 2024 22:53:09 +0200 Subject: [PATCH] remove duplicate list item --- src/utils/user.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/utils/user.ts b/src/utils/user.ts index 8c0d198..5d6e949 100644 --- a/src/utils/user.ts +++ b/src/utils/user.ts @@ -15,14 +15,7 @@ export const getApiUrl = async () => { apiUrl: config.apiUrl, }); let apiUrl = (settings.apiUrl as string) || config.apiUrl; - const suffixes = [ - '/', - '.bulk', - '.bulk', - '/users/current/heartbeats', - '/heartbeats', - '/heartbeat', - ]; + const suffixes = ['/', '.bulk', '/users/current/heartbeats', '/heartbeats', '/heartbeat']; for (const suffix of suffixes) { if (apiUrl.endsWith(suffix)) { apiUrl = apiUrl.slice(0, -suffix.length);