Skip to content

Commit b6668d2

Browse files
committed
Simplify
1 parent 0a6303d commit b6668d2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/core/assistant-message/presentAssistantMessage.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,7 @@ export async function presentAssistantMessage(cline: Task) {
254254
if (block.toolUseId) {
255255
cline.userMessageContent.push({ type: "tool_result", tool_use_id: block.toolUseId, content: items })
256256
} else {
257-
for (const item of items) {
258-
cline.userMessageContent.push(item)
259-
}
257+
cline.userMessageContent.push(...items)
260258
}
261259
}
262260

0 commit comments

Comments
 (0)