From ea07d5f11e2147de01210d46eda4d0baac8499f5 Mon Sep 17 00:00:00 2001 From: Linkie Link Date: Wed, 14 Feb 2024 11:47:42 +0100 Subject: [PATCH] tidy: cleanup --- src/utils/url.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/url.ts b/src/utils/url.ts index ae28ba6c..a3a331c9 100644 --- a/src/utils/url.ts +++ b/src/utils/url.ts @@ -1,9 +1,7 @@ export const getUrl = (baseUrl: string, path: string): string => { const isPlaceholder = baseUrl.split('APP_').length > 1 - if (isPlaceholder) { - return baseUrl + '/' + path - } + if (isPlaceholder) return baseUrl + '/' + path const url = new URL(baseUrl)