mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Remove promises reference
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user