mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-05-30 02:31:19 +00:00
Returning `undefined` makes the address length check in [dialler/index.js](https://github.com/libp2p/js-libp2p/blob/master/src/dialer/index.js#L73-L75) fail with `cannot read property length of undefined` so the change here is to always return an array, but it might be empty if we don't know any multiaddrs for the given peer.