Skip to content

Commit 4f15863

Browse files
Lint
1 parent 9b5d9a4 commit 4f15863

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/core/splitters/markdown.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)