Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Mar 9, 2024
1 parent d0f1985 commit e254a82
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions deps/streamsearch/sbmh.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,12 @@ class SBMH extends EventEmitter {
chunk = Buffer.from(chunk, 'binary')
}

this._bufpos = pos
const chlen = chunk.length
let r

while (r !== chlen && this.matches < this.maxMatches) {
r = this._sbmh_feed(chunk)
}
this._bufpos = pos

let r
while (r !== chlen && this.matches < this.maxMatches) { r = this._sbmh_feed(chunk) }
return r
}

Expand Down

0 comments on commit e254a82

Please sign in to comment.