mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-14 19:36:24 +00:00
code style
This commit is contained in:
parent
32b622aa51
commit
b079bad35a
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user