Fix all await-promise tslint errors (#7530)

* Fix all await-promise tslint errors

* Remove unnecessary await
This commit is contained in:
Charles Gagnon
2019-10-07 17:52:01 -07:00
committed by GitHub
parent 749ddc30c7
commit e4e71af597
7 changed files with 12 additions and 11 deletions

View File

@@ -134,7 +134,7 @@ export class CommandLineWorkbenchContribution implements IWorkbenchContribution,
// we want to connect the given profile to to it.
// If more than one file was passed, only show the connection dialog error on one of them.
if (args._ && args._.length > 0) {
await args._.forEach((f, i) => this.processFile(URI.file(f).toString(), profile, i === 0));
await Promise.all(args._.map((f, i) => this.processFile(URI.file(f).toString(), profile, i === 0)));
}
else {
// Default to showing new query