mirror of
https://github.com/fluencelabs/js-libp2p-tcp
synced 2025-04-25 16:22:30 +00:00
chore: tiny refactor
This commit is contained in:
parent
50840a8067
commit
9c77a69ae3
@ -21,9 +21,8 @@ class TCP {
|
||||
options = {}
|
||||
}
|
||||
|
||||
callback = callback || noop
|
||||
callback = once(callback || noop)
|
||||
|
||||
callback = once(callback)
|
||||
const cOpts = ma.toOptions()
|
||||
log('Connecting to %s %s', cOpts.port, cOpts.host)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user