hoisting cleanup for format var

This commit is contained in:
timothycarambat 2025-05-14 16:25:17 -07:00
parent da11f3b997
commit 2450e49ac3

View File

@ -20,8 +20,7 @@ function getImageFormatFromMime(mimeType = "") {
if (!mimeType) return null;
const parts = mimeType.toLowerCase().split("/");
if (parts?.[0] !== "image") return null;
const format = parts?.[1];
let format = parts?.[1];
if (!format) return null;
// Remap jpg to jpeg