Skip to content

Commit

Permalink
fix: apply fixes for qa issues
Browse files Browse the repository at this point in the history
  • Loading branch information
peternhale committed Sep 9, 2022
1 parent c56b3ec commit 7a944da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/force/package/beta/version/displayancestry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class PackageVersionDisplayAncestryCommand extends SfdxCommand {
public static readonly varargs = false;
public static readonly requiresDevhubUsername = true;
public static readonly requiresProject = true;
public static readonly require = true;

public static readonly flagsConfig: FlagsConfig = {
// --json is configured automatically
Expand Down Expand Up @@ -58,7 +57,9 @@ export class PackageVersionDisplayAncestryCommand extends SfdxCommand {
this.ux.log();
}
const treeProducer = await packageAncestry.getTreeProducer(!!this.flags.verbose);
treeProducer.produce();
if (!this.flags.json) {
treeProducer.produce();
}
}
return jsonProducer.produce() as PackageAncestryNodeData;
}
Expand Down

0 comments on commit 7a944da

Please sign in to comment.