mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
chore: fix pre-existing biome formatting issues
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user