Skip to content

Commit 89d81e8

Browse files
committed
[minor] Fix nit
1 parent 4916d03 commit 89d81e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/sender.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ class Sender {
7575
if (payloadLength === 126) {
7676
target.writeUInt16BE(data.length, 2);
7777
} else if (payloadLength === 127) {
78-
target[2] = 0;
79-
target[3] = 0;
78+
target[2] = target[3] = 0;
8079
target.writeUIntBE(data.length, 4, 6);
8180
}
8281

0 commit comments

Comments
 (0)