Skip to content

Commit b396444

Browse files
committed
fix: optional location
1 parent 5e1c0ec commit b396444

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/linter/reporters/github.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default issue => {
1818

1919
(actions[issue.level] || core.notice)(issue.message, {
2020
file: issue.location.path,
21-
startLine: issue.location.position.start.line,
22-
endLine: issue.location.position.end.line,
21+
startLine: issue.location.position?.start.line,
22+
endLine: issue.location.position?.end.line,
2323
});
2424
};

0 commit comments

Comments
 (0)