mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-22 21:28:12 +02:00
chore: linting
This commit is contained in:
parent
4b8a2f9726
commit
b89866541e
10 changed files with 42 additions and 59 deletions
|
|
@ -26,10 +26,7 @@ type BackendUrlParam = string | number | boolean | null | undefined;
|
|||
* BACKEND_URL is explicitly configured, the same path resolves against that
|
||||
* absolute backend origin.
|
||||
*/
|
||||
export function buildBackendUrl(
|
||||
path: string,
|
||||
params?: Record<string, BackendUrlParam>
|
||||
): string {
|
||||
export function buildBackendUrl(path: string, params?: Record<string, BackendUrlParam>): string {
|
||||
const backendPath = path.startsWith("/") ? path : `/${path}`;
|
||||
const queryParams = new URLSearchParams();
|
||||
|
||||
|
|
|
|||
|
|
@ -91,5 +91,7 @@ export function getSupportedExtensionsSet(
|
|||
acceptedFileTypes?: Record<string, string[]>,
|
||||
etlService?: string
|
||||
): Set<string> {
|
||||
return new Set(getSupportedExtensions(acceptedFileTypes, etlService).map((ext) => ext.toLowerCase()));
|
||||
return new Set(
|
||||
getSupportedExtensions(acceptedFileTypes, etlService).map((ext) => ext.toLowerCase())
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue