mirror of
https://github.com/fluencelabs/js-libp2p-tcp
synced 2025-04-26 05:52:23 +00:00
Removes unused options param.
This commit is contained in:
parent
fdfdb7a5ad
commit
6d1b729fcd
@ -26,13 +26,7 @@ function TCP () {
|
|||||||
return conn
|
return conn
|
||||||
}
|
}
|
||||||
|
|
||||||
this.createListener = (multiaddrs, options, handler, callback) => {
|
this.createListener = (multiaddrs, handler, callback) => {
|
||||||
if (typeof options === 'function') {
|
|
||||||
callback = handler
|
|
||||||
handler = options
|
|
||||||
options = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!Array.isArray(multiaddrs)) {
|
if (!Array.isArray(multiaddrs)) {
|
||||||
multiaddrs = [multiaddrs]
|
multiaddrs = [multiaddrs]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user