Skip to content

Commit

Permalink
fix(perf): 2 fs ops in parallel (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc authored Nov 13, 2023
1 parent de3bb13 commit a6aa122
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sfCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,11 @@ export abstract class SfCommand<T> extends Command {
});
});

this.configAggregator = await ConfigAggregator.create();
[this.configAggregator, this.project] = await Promise.all([
ConfigAggregator.create(),
...(this.statics.requiresProject ? [this.assignProject()] : []),
]);

if (this.statics.requiresProject) {
this.project = await this.assignProject();
}
if (this.statics.state === 'beta') {
this.warn(messages.getMessage('warning.CommandInBeta'));
}
Expand Down

0 comments on commit a6aa122

Please sign in to comment.