Skip to content

Commit 92b279c

Browse files
committed
One liner
1 parent 6f46253 commit 92b279c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ export default class Trix {
3737
let { end, buffer } = res
3838
let done = false
3939
const decoder = new TextDecoder('utf8')
40-
const str = decoder.decode(buffer)
4140
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
4241
while (!done) {
4342
let foundSomething = false
43+
const str = decoder.decode(buffer)
4444

4545
// slice to lastIndexOf('\n') to make sure we get complete records
4646
// since the buffer fetch could get halfway into a record

0 commit comments

Comments
 (0)