We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f46253 commit 92b279cCopy full SHA for 92b279c
src/index.ts
@@ -37,10 +37,10 @@ export default class Trix {
37
let { end, buffer } = res
38
let done = false
39
const decoder = new TextDecoder('utf8')
40
- const str = decoder.decode(buffer)
41
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
42
while (!done) {
43
let foundSomething = false
+ const str = decoder.decode(buffer)
44
45
// slice to lastIndexOf('\n') to make sure we get complete records
46
// since the buffer fetch could get halfway into a record
0 commit comments