Remove useless helper
All checks were successful
Bump deps (only minor versions) / ci (push) Successful in 21s
All checks were successful
Bump deps (only minor versions) / ci (push) Successful in 21s
This commit is contained in:
parent
5d0fa4e951
commit
6f93574e8a
2 changed files with 7 additions and 16 deletions
|
@ -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;
|
Loading…
Add table
Add a link
Reference in a new issue