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
@@ -22,9 +22,9 @@ export async function compress(image: Sharp, options: CompressOptions): Promise<
const metadata = await image.metadata();
const detected = metadata.format ?? "jpeg";
const outputFormat = (
FORMAT_MAP[format ?? ""] ?? FORMAT_MAP[detected] ?? detected
) as keyof import("sharp").FormatEnum;
const outputFormat = (FORMAT_MAP[format ?? ""] ??
FORMAT_MAP[detected] ??
detected) as keyof import("sharp").FormatEnum;
if (targetSizeBytes !== undefined) {
if (targetSizeBytes <= 0) {