mirror of
https://github.com/logos-storage/bittorrent-tracker.git
synced 2026-01-07 15:33:08 +00:00
remove new trick for non-exported function
This commit is contained in:
parent
5064a05dde
commit
94ae74b32d
1
index.js
1
index.js
@ -34,7 +34,6 @@ inherits(Tracker, EventEmitter)
|
|||||||
*/
|
*/
|
||||||
function Tracker (client, announceUrl, interval, opts) {
|
function Tracker (client, announceUrl, interval, opts) {
|
||||||
var self = this
|
var self = this
|
||||||
if (!(self instanceof Tracker)) return new Tracker(client, announceUrl, interval, opts)
|
|
||||||
EventEmitter.call(self)
|
EventEmitter.call(self)
|
||||||
self._opts = opts || {}
|
self._opts = opts || {}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user