Skip to content

Commit

Permalink
Code fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
  • Loading branch information
vzhukovs committed Nov 15, 2019
1 parent 41080bb commit d4d0373
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/plugin-ext/src/plugin/dialogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,7 @@ export class DialogsExtImpl {
return new Promise((resolve, reject) => {
this.proxy.$showUploadDialog(optionsMain).then(result => {
if (result) {
const uris = [];
for (let i = 0; i < result.length; i++) {
const uri = Uri.parse(result[i]);
uris.push(uri);
}
resolve(uris);
resolve(result.map(uri => Uri.parse(uri)));
} else {
resolve(undefined);
}
Expand Down

0 comments on commit d4d0373

Please sign in to comment.