From da1a8934e15ce11878dffa0cb608c1366e5703b7 Mon Sep 17 00:00:00 2001 From: C4illin Date: Sun, 26 May 2024 12:46:22 +0200 Subject: [PATCH] format all --- src/converters/main.ts | 6 +++--- src/helpers/normalizeFiletype.ts | 8 ++++---- src/index.tsx | 8 ++++++-- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/converters/main.ts b/src/converters/main.ts index 3245841..766a97f 100644 --- a/src/converters/main.ts +++ b/src/converters/main.ts @@ -108,7 +108,7 @@ export async function mainConverter( console.log( `No available converter supports converting from ${fileType} to ${convertTo}.`, ); - return "File type not supported" + return "File type not supported"; } try { @@ -123,13 +123,13 @@ export async function mainConverter( console.log( `Converted ${inputFilePath} from ${fileType} to ${convertTo} successfully using ${converterName}.`, ); - return "Done" + return "Done"; } catch (error) { console.error( `Failed to convert ${inputFilePath} from ${fileType} to ${convertTo} using ${converterName}.`, error, ); - return "Failed, check logs" + return "Failed, check logs"; } } diff --git a/src/helpers/normalizeFiletype.ts b/src/helpers/normalizeFiletype.ts index a4668a2..d04083b 100644 --- a/src/helpers/normalizeFiletype.ts +++ b/src/helpers/normalizeFiletype.ts @@ -1,6 +1,6 @@ export const normalizeFiletype = (filetype: string): string => { const lowercaseFiletype = filetype.toLowerCase(); - + switch (lowercaseFiletype) { case "jpg": return "jpeg"; @@ -11,11 +11,11 @@ export const normalizeFiletype = (filetype: string): string => { default: return lowercaseFiletype; } -} +}; export const normalizeOutputFiletype = (filetype: string): string => { const lowercaseFiletype = filetype.toLowerCase(); - + switch (lowercaseFiletype) { case "jpeg": return "jpg"; @@ -24,4 +24,4 @@ export const normalizeOutputFiletype = (filetype: string): string => { default: return lowercaseFiletype; } -} \ No newline at end of file +}; diff --git a/src/index.tsx b/src/index.tsx index d1d8664..7a55a70 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -458,7 +458,9 @@ const app = new Elysia() {targets.map((target) => ( // biome-ignore lint/correctness/useJsxKeyInIterable: - + ))} ))} @@ -485,7 +487,9 @@ const app = new Elysia() {targets.map((target) => ( // biome-ignore lint/correctness/useJsxKeyInIterable: - + ))} ),