code style

This commit is contained in:
Feross Aboukhadijeh 2014-11-26 20:18:12 +08:00
parent 32b622aa51
commit b079bad35a

View File

@ -482,9 +482,9 @@ Tracker.prototype._handleResponse = function (requestUrl, data) {
incomplete: data.incomplete incomplete: data.incomplete
}) })
var addrs
if (Buffer.isBuffer(data.peers)) { if (Buffer.isBuffer(data.peers)) {
// tracker returned compact response // tracker returned compact response
var addrs
try { try {
addrs = compact2string.multi(data.peers) addrs = compact2string.multi(data.peers)
} catch (err) { } catch (err) {
@ -502,7 +502,6 @@ Tracker.prototype._handleResponse = function (requestUrl, data) {
if (Buffer.isBuffer(data.peers6)) { if (Buffer.isBuffer(data.peers6)) {
// tracker returned compact response // tracker returned compact response
var addrs
try { try {
addrs = compact2string.multi6(data.peers6) addrs = compact2string.multi6(data.peers6)
} catch (err) { } catch (err) {