Skip to content

Commit a6f1403

Browse files
committed
style
1 parent ebb86f7 commit a6f1403

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

client.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ Tracker.prototype._requestUdp = function (requestUrl, opts) {
305305

306306
socket.on('message', function (msg) {
307307
if (msg.length < 8 || msg.readUInt32BE(4) !== transactionId.readUInt32BE(0)) {
308-
return error('tracker sent back invalid transaction id')
308+
return error('tracker sent invalid transaction id')
309309
}
310310

311311
var action = msg.readUInt32BE(0)
@@ -374,6 +374,10 @@ Tracker.prototype._requestUdp = function (requestUrl, opts) {
374374
}
375375
self.client.emit('error', new Error(msg.slice(8).toString()))
376376
break
377+
378+
default:
379+
error('tracker sent invalid action')
380+
break
377381
}
378382
})
379383

server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ function makeUdpPacket (params) {
312312
break
313313
default:
314314
throw new Error('Action not implemented: ' + params.action)
315-
break
316-
}
315+
}
317316
return packet
318317
}

0 commit comments

Comments
 (0)