Skip to content

Commit

Permalink
Remove that stupid async from setFile()
Browse files Browse the repository at this point in the history
  • Loading branch information
surma committed Feb 25, 2019
1 parent 57eb2dc commit acb70ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/App/client-api.ts
Expand Up @@ -43,7 +43,7 @@ export class API {
* @param name The name of the file. The extension of this name will be used
* to deterime which decoder to use.
*/
async setFile(blob: Blob, name: string) {
setFile(blob: Blob, name: string) {
return new Promise((resolve) => {
document.addEventListener(SquooshStartEventType.START, () => resolve(), {
once: true,
Expand Down

0 comments on commit acb70ef

Please sign in to comment.