Skip to content

Commit 97222ed

Browse files
committed
typo
1 parent 7e7062d commit 97222ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parse_websocket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function parseWebSocketRequest (socket, params) {
1919
params.peer_id = common.binaryToHex(params.peer_id)
2020

2121
if (params.answer) {
22-
if (typeof params.to_peer_id !== 'string' || params.to_peer_id.length !== 20)) {
22+
if (typeof params.to_peer_id !== 'string' || params.to_peer_id.length !== 20) {
2323
throw new Error('invalid `to_peer_id` (required with `answer`)')
2424
}
2525
params.to_peer_id = common.binaryToHex(params.to_peer_id)

0 commit comments

Comments
 (0)