Merge pull request #2620 from github/cklin/DiffThunkRange-fix
Fix DiffThunkRange access
This commit is contained in:
commit
af49565b85
3 changed files with 6 additions and 3 deletions
2
lib/analyze.js
generated
2
lib/analyze.js
generated
|
|
@ -287,7 +287,7 @@ extensions:
|
||||||
data:
|
data:
|
||||||
`;
|
`;
|
||||||
let data = ranges
|
let data = ranges
|
||||||
.map((range) => ` - ["${range[0]}", ${range[1]}, ${range[2]}]\n`)
|
.map((range) => ` - ["${range.path}", ${range.startLine}, ${range.endLine}]\n`)
|
||||||
.join("");
|
.join("");
|
||||||
if (!data) {
|
if (!data) {
|
||||||
// Ensure that the data extension is not empty, so that a pull request with
|
// 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
|
|
@ -428,7 +428,10 @@ extensions:
|
||||||
`;
|
`;
|
||||||
|
|
||||||
let data = ranges
|
let data = ranges
|
||||||
.map((range) => ` - ["${range[0]}", ${range[1]}, ${range[2]}]\n`)
|
.map(
|
||||||
|
(range) =>
|
||||||
|
` - ["${range.path}", ${range.startLine}, ${range.endLine}]\n`,
|
||||||
|
)
|
||||||
.join("");
|
.join("");
|
||||||
if (!data) {
|
if (!data) {
|
||||||
// Ensure that the data extension is not empty, so that a pull request with
|
// Ensure that the data extension is not empty, so that a pull request with
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue