Skip to content

Commit

Permalink
refactor: send 0 when no wait specified
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Sep 26, 2023
1 parent be6b301 commit 0b0ec2c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/commands/project/deploy/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,12 @@ export default class DeployMetadataReport extends SfCommand<DeployResultJson> {
try {
this.project = await SfProject.resolve();
const sourcepath = this.project.getUniquePackageDirectories().map((pDir) => pDir.fullPath);
componentSet = await buildComponentSet({
'source-dir': sourcepath,
wait: flags['wait'].quantity > 0 ? flags['wait'] : undefined,
});
componentSet = await buildComponentSet({ 'source-dir': sourcepath, wait: flags['wait'] });
} catch (err) {
// ignore the error. this was just to get improved command output.
}
} else {
componentSet = await buildComponentSet({
...deployOpts,
wait: flags['wait'].quantity > 0 ? flags['wait'] : undefined,
});
componentSet = await buildComponentSet({ ...deployOpts, wait: flags['wait'] });
}
}
const mdapiDeploy = new MetadataApiDeploy({
Expand Down

0 comments on commit 0b0ec2c

Please sign in to comment.