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