Merge pull request #2620 from github/cklin/DiffThunkRange-fix

Fix DiffThunkRange access
This commit is contained in:
Chuan-kai Lin 2024-12-02 07:31:21 -08:00 committed by GitHub
commit af49565b85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

2
lib/analyze.js generated
View file

@ -287,7 +287,7 @@ extensions:
data:
`;
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

File diff suppressed because one or more lines are too long

View file

@ -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