Skip to content

Commit

Permalink
[minor] Fix nit
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Nov 16, 2021
1 parent 4916d03 commit 89d81e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ class Sender {
if (payloadLength === 126) {
target.writeUInt16BE(data.length, 2);
} else if (payloadLength === 127) {
target[2] = 0;
target[3] = 0;
target[2] = target[3] = 0;
target.writeUIntBE(data.length, 4, 6);
}

Expand Down

0 comments on commit 89d81e8

Please sign in to comment.