Skip to content

Commit

Permalink
fix: optional location
Browse files Browse the repository at this point in the history
  • Loading branch information
araujogui committed Feb 17, 2025
1 parent 5e1c0ec commit b396444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/linter/reporters/github.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default issue => {

(actions[issue.level] || core.notice)(issue.message, {
file: issue.location.path,
startLine: issue.location.position.start.line,
endLine: issue.location.position.end.line,
startLine: issue.location.position?.start.line,
endLine: issue.location.position?.end.line,
});
};

0 comments on commit b396444

Please # to comment.