chore: fix pre-existing biome formatting issues

This commit is contained in:
ashim-hq
2026-04-21 23:25:41 +08:00
parent afac4b9870
commit 7920fbfd20
5 changed files with 33 additions and 18 deletions
+3 -5
View File
@@ -70,11 +70,9 @@ async function decodeIco(buffer: Buffer): Promise<Buffer> {
try {
await writeFile(inputPath, buffer);
// ICO contains multiple sizes; extract the largest by sorting
await execFileAsync(
cmd,
magickArgs(cmd, [`${inputPath}[-1]`, `png:${outputPath}`]),
{ timeout: 120_000 },
);
await execFileAsync(cmd, magickArgs(cmd, [`${inputPath}[-1]`, `png:${outputPath}`]), {
timeout: 120_000,
});
return await readFile(outputPath);
} finally {
await rm(inputPath, { force: true }).catch(() => {});