mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-14 03:16: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
|
||||
})
|
||||
|
||||
var addrs
|
||||
if (Buffer.isBuffer(data.peers)) {
|
||||
// tracker returned compact response
|
||||
var addrs
|
||||
try {
|
||||
addrs = compact2string.multi(data.peers)
|
||||
} catch (err) {
|
||||
@ -502,7 +502,6 @@ Tracker.prototype._handleResponse = function (requestUrl, data) {
|
||||
|
||||
if (Buffer.isBuffer(data.peers6)) {
|
||||
// tracker returned compact response
|
||||
var addrs
|
||||
try {
|
||||
addrs = compact2string.multi6(data.peers6)
|
||||
} catch (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user