Remove useless helper
All checks were successful
Bump deps (only minor versions) / ci (push) Successful in 21s

This commit is contained in:
0d0 2025-02-23 06:37:13 +01:00
parent 5d0fa4e951
commit 6f93574e8a
2 changed files with 7 additions and 16 deletions

View file

@ -10,13 +10,4 @@ export const isURLValid = (url: string) => {
return true;
}
export const mimeTypeMap = formatMime;
export const contentTypeFromFormat = (format: string): string => {
const toReturn: string | undefined = formatMime.get(format)
if (!toReturn) {
throw new Error("Unsupported format")
}
return toReturn;
}
export const mimeTypeMap = formatMime;