mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2024-11-22 20:19:02 +00:00
fix array pushing
This commit is contained in:
parent
bcec1128c8
commit
e73abe7ded
2
dist/index.js
vendored
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
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user