mirror of
https://github.com/fluencelabs/js-libp2p-tcp
synced 2025-06-11 11:21:33 +00:00
chore: tiny refactor
This commit is contained in:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user