Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Mar 16, 2024
1 parent 16ffb50 commit dd789ac
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions deps/streamsearch/sbmh.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,10 @@ SBMH.prototype._sbmh_feed = function (data) {
pos < len &&
(
data[pos] !== needle[0] ||
(
(Buffer.compare(
data.subarray(pos, pos + len - pos),
needle.subarray(0, len - pos)
) !== 0)
)
Buffer.compare(
data.subarray(pos, pos + len - pos),
needle.subarray(0, len - pos)
) !== 0
)
) {
++pos
Expand Down

0 comments on commit dd789ac

Please sign in to comment.