tidy: cleanup

This commit is contained in:
Linkie Link 2024-02-14 11:47:42 +01:00
parent dae929d851
commit ea07d5f11e
No known key found for this signature in database
GPG Key ID: 5318B0F2564D38EA

View File

@ -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)