From e6a94fb21d657cfb3af56891b1a2d0f7b83b0182 Mon Sep 17 00:00:00 2001 From: C4illin Date: Thu, 12 Sep 2024 12:59:59 +0200 Subject: [PATCH] chore: format --- src/converters/resvg.ts | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/src/converters/resvg.ts b/src/converters/resvg.ts index e971378..a93ea7d 100644 --- a/src/converters/resvg.ts +++ b/src/converters/resvg.ts @@ -9,7 +9,6 @@ export const properties = { }, }; - export function convert( filePath: string, fileType: string, @@ -19,23 +18,20 @@ export function convert( options?: any, ): Promise { return new Promise((resolve, reject) => { - exec( - `resvg "${filePath}" "${targetPath}"`, - (error, stdout, stderr) => { - if (error) { - reject(`error: ${error}`); - } + exec(`resvg "${filePath}" "${targetPath}"`, (error, stdout, stderr) => { + if (error) { + reject(`error: ${error}`); + } - if (stdout) { - console.log(`stdout: ${stdout}`); - } + if (stdout) { + console.log(`stdout: ${stdout}`); + } - if (stderr) { - console.error(`stderr: ${stderr}`); - } + if (stderr) { + console.error(`stderr: ${stderr}`); + } - resolve("success"); - }, - ); + resolve("success"); + }); }); -} \ No newline at end of file +}