mirror of
https://github.com/github/codeql-action.git
synced 2026-01-04 21:50:17 +08:00
Fix DiffThunkRange access
This commit fixes lingering array index access that I missed when I converted getPullRequestEditedDiffRanges() results from tuples to DiffThunkRange objects.
This commit is contained in:
@@ -428,7 +428,10 @@ extensions:
|
||||
`;
|
||||
|
||||
let data = ranges
|
||||
.map((range) => ` - ["${range[0]}", ${range[1]}, ${range[2]}]\n`)
|
||||
.map(
|
||||
(range) =>
|
||||
` - ["${range.path}", ${range.startLine}, ${range.endLine}]\n`,
|
||||
)
|
||||
.join("");
|
||||
if (!data) {
|
||||
// Ensure that the data extension is not empty, so that a pull request with
|
||||
|
||||
Reference in New Issue
Block a user