Removes unused options param.

This commit is contained in:
Stephen Whitmore 2016-04-21 15:36:39 -07:00
parent fdfdb7a5ad
commit 6d1b729fcd

View File

@ -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]
}