Skip to content

Commit

Permalink
Update receiver.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tsctx authored Aug 12, 2024
1 parent 5cc48ff commit 22d310a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/web/websocket/receiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ class ByteParser extends Writable {
} else {
let offset = 0
// If Buffer.allocUnsafe is used, extra copies will be made because the offset is non-zero.

const buffer = Buffer.allocUnsafeSlow(n)
while (offset !== n) {
const next = this.#buffers[0]
Expand Down

0 comments on commit 22d310a

Please sign in to comment.