Skip to content

Commit

Permalink
Merge pull request #17 from Benyon/fix/possible-null-error
Browse files Browse the repository at this point in the history
Bug fix for 'cannot use in' operator to search 'message' in null.' as…
  • Loading branch information
Ma11hewThomas authored Jun 20, 2024
2 parents 37c1100 + 626ef99 commit 955ed34
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 955ed34

Please sign in to comment.