Skip to content

Commit eb69f8d

Browse files
committed
standard
1 parent 3cec3fa commit eb69f8d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ Client.scrape = (opts, cb) => {
281281

282282
opts.infoHash = Array.isArray(opts.infoHash)
283283
? opts.infoHash.map(infoHash => {
284-
return Buffer.from(infoHash, 'hex')
285-
})
284+
return Buffer.from(infoHash, 'hex')
285+
})
286286
: Buffer.from(opts.infoHash, 'hex')
287287
client.scrape({ infoHash: opts.infoHash })
288288
return client

lib/client/http-tracker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ class HTTPTracker extends Tracker {
6363

6464
const infoHashes = (Array.isArray(opts.infoHash) && opts.infoHash.length > 0)
6565
? opts.infoHash.map(infoHash => {
66-
return infoHash.toString('binary')
67-
})
66+
return infoHash.toString('binary')
67+
})
6868
: (opts.infoHash && opts.infoHash.toString('binary')) || this.client._infoHashBinary
6969
const params = {
7070
info_hash: infoHashes

lib/client/websocket-tracker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ class WebSocketTracker extends Tracker {
7777

7878
const infoHashes = (Array.isArray(opts.infoHash) && opts.infoHash.length > 0)
7979
? opts.infoHash.map(infoHash => {
80-
return infoHash.toString('binary')
81-
})
80+
return infoHash.toString('binary')
81+
})
8282
: (opts.infoHash && opts.infoHash.toString('binary')) || this.client._infoHashBinary
8383
const params = {
8484
action: 'scrape',

0 commit comments

Comments
 (0)