Skip to content

Commit

Permalink
Handle missing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
matejchalk committed May 27, 2024
1 parent c029059 commit 41b7388
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions __tests__/__snapshots__/main.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports[`code-pushup action pull request event should compare reports 1`] = `
|:--|:--|:--:|:--:|:--:|
|TypeScript migration|Source files converted from JavaScript to TypeScript|🟩 **100% converted**|🟨 50% converted|![↑ +100 %](https://img.shields.io/badge/%E2%86%91%20%2B100%E2%80%89%25-green)|
</details>
"
`;
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function getAuditIssues(
): SourceFileIssue[] {
return (
audit.details?.issues
.filter((issue): issue is Required<Issue> => issue.source?.file != null)
?.filter((issue): issue is Required<Issue> => issue.source?.file != null)
.map(issue => ({ ...issue, audit, plugin })) ?? []
)
}
Expand Down

0 comments on commit 41b7388

Please sign in to comment.