Skip to content

Commit

Permalink
chore(Gallery): remove todo
Browse files Browse the repository at this point in the history
code works as intended

See broofa/mime#295

Signed-off-by: Martin Dünkelmann <[email protected]>
  • Loading branch information
MartinX3 committed Dec 2, 2023
1 parent ebab3b3 commit 9ded6e4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/models/builder/rtc-cologne/gallery/GalleryEntryBuilder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// TODO Workaround for `The requested module 'mime/lite' does not provide an export named 'getType'` https://github.com/broofa/mime/issues/291
import mime from 'mime/lite'
import ABuilder from 'src/models/builder/ABuilder'
import GalleryEntry from 'src/models/entities/rtc-cologne/gallery/GalleryEntry'
Expand All @@ -15,7 +14,6 @@ export default class GalleryEntryBuilder extends ABuilder {

setImageUrl = (value: string): this => {
this.galleryEntry.imageUrl = new URL(`https://${value}`)
// TODO Workaround for `The requested module 'mime/lite' does not provide an export named 'getType'` https://github.com/broofa/mime/issues/291
this.galleryEntry.mimeType = mime.getType(value)

return this
Expand Down

0 comments on commit 9ded6e4

Please sign in to comment.