Skip to content

Commit 5c7ebb7

Browse files
committed
style
1 parent c8cc97a commit 5c7ebb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ Client.prototype._requestUdp = function (announceUrl, opts) {
208208
})
209209

210210
function send (message) {
211-
if(parsedUrl.port==null) {
212-
parsedUrl.port=80;
211+
if (!parsedUrl.port) {
212+
parsedUrl.port = 80;
213213
}
214214
socket.send(message, 0, message.length, parsedUrl.port, parsedUrl.hostname)
215215
}

0 commit comments

Comments
 (0)