File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -120,9 +120,7 @@ export class MarkdownSplitter {
120120 const isLast = textIndex === splitTexts . length - 1
121121
122122 return this . createChunk (
123- ( isFirst ? chunk . leadingWhitespace || '' : '' ) +
124- text +
125- ( isLast ? chunk . trailingWhitespace || '' : '' ) ,
123+ ( isFirst ? chunk . leadingWhitespace || '' : '' ) + text + ( isLast ? chunk . trailingWhitespace || '' : '' ) ,
126124 chunk . shouldTranslate ,
127125 )
128126 } )
@@ -156,7 +154,7 @@ export class MarkdownSplitter {
156154 splitLines . pop ( )
157155 }
158156
159- const lines = splitLines . map ( line => line + '\n' )
157+ const lines = splitLines . map ( ( line ) => line + '\n' )
160158
161159 if ( ! hasTrailingNewline && lines . length > 0 ) {
162160 lines [ lines . length - 1 ] = lines . at ( - 1 ) ! . slice ( 0 , - 1 )
You can’t perform that action at this time.
0 commit comments