Remove `promises` reference

This commit is contained in:
Daniel Gasienica 2018-02-14 12:22:39 -05:00
parent a0e9559ed5
commit 98d951ef77
1 changed files with 1 additions and 4 deletions

View File

@ -192,11 +192,8 @@
/* jshint ignore:start */
getFiles() {
const files = this.file ? [this.file] : Array.from(this.$input.prop('files'));
const promises = Promise.all(
files.map(file => this.getFile(file))
);
this.clearForm();
return promises;
return Promise.all(files.map(file => this.getFile(file)));
},
getFile(rawFile) {