Skip to content

Commit

Permalink
Bug fix for 'cannot use in' operator to search 'message' in null.' as…
Browse files Browse the repository at this point in the history
… error could possible be null
  • Loading branch information
NBrownBenyon committed Jun 20, 2024
1 parent 37c1100 commit 626ef99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/generate-report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ export class GenerateCtrfReport {

if (
lastAttempt?.error !== undefined &&
lastAttempt?.error !== null &&
'message' in lastAttempt.error &&
'stack' in lastAttempt.error
) {
Expand Down

0 comments on commit 626ef99

Please sign in to comment.