ReviewOS

also looking at this

stacks/dtsx

chore(deps): update all non-major dependencies

#2997
Closed renovate[bot] wants to merge renovate/all-minor-patch into main
29 files +1047 -444
packages/dtsx/src/processor/comments.tsmodified+10-5
Changes to packages/dtsx/src/processor/comments.ts
@@ -10,10 +10,15 @@ export function formatComments(comments: string[] | undefined, keepComments: boo
1010 return ''
1111 }
1212
13 const formattedComments = comments.map((comment) => {
14 // Ensure proper spacing and formatting
15 return comment.trim()
16 }).join('\n')
13 // Fast path: single comment (most common case)
14 if (comments.length === 1)
15 return comments[0].trim() + '\n'
1716
18 return `${formattedComments}\n`
17 // Multiple comments: join with newlines
18 let result = ''
19 for (let i = 0; i < comments.length; i++) {
20 if (i > 0) result += '\n'
21 result += comments[i].trim()
22 }
23 return result + '\n'
1924}