Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 authored Sep 27, 2023
1 parent c976ee2 commit 0616a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@uppy/utils/src/dataURItoBlob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export default function dataURItoBlob (dataURI: string, opts: { mimeType: string

// Convert to a File?
if (toFile) {
return new File([data], opts.name || '', { type: mimeType })
return new File(data, opts.name || '', { type: mimeType })

Check failure on line 24 in packages/@uppy/utils/src/dataURItoBlob.ts

View workflow job for this annotation

GitHub Actions / Type tests

Variable 'data' is used before being assigned.
}

return new Blob([data], { type: mimeType })
return new Blob(data, { type: mimeType })

Check failure on line 27 in packages/@uppy/utils/src/dataURItoBlob.ts

View workflow job for this annotation

GitHub Actions / Type tests

Variable 'data' is used before being assigned.
}

0 comments on commit 0616a49

Please sign in to comment.