Skip to content

Commit ad0cad9

Browse files
committed
chore: safer chaining
1 parent ce8e2af commit ad0cad9

File tree

1 file changed

+1
-1
lines changed
  • src/commands/force/apex/test

1 file changed

+1
-1
lines changed

src/commands/force/apex/test/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ export default class Run extends SfdxCommand {
324324
}
325325

326326
private formatReportHint(result: TestResult): string {
327-
let reportArgs = `-i ${result.summary.testRunId}`;
327+
let reportArgs = `-i ${result.summary?.testRunId}`;
328328
if (this.flags.targetusername) {
329329
reportArgs += ` -u ${this.flags.targetusername}`;
330330
}

0 commit comments

Comments
 (0)