fix array pushing

This commit is contained in:
Ville Saukkonen 2023-03-28 00:45:51 +03:00
parent bcec1128c8
commit e73abe7ded
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored

@ -97,7 +97,7 @@ function analyzeCode(parsedDiff, prDetails) {
if (aiResponse) {
const newComments = createComment(file, chunk, aiResponse);
if (newComments) {
comments.concat(newComments);
comments.push(...newComments);
}
}
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

@ -70,7 +70,7 @@ async function analyzeCode(
if (aiResponse) {
const newComments = createComment(file, chunk, aiResponse);
if (newComments) {
comments.concat(newComments);
comments.push(...newComments);
}
}
}