aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/util.rs b/src/util.rs
index 047095f..f4dfac7 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -80,10 +80,7 @@ pub fn parse_and_resolve_peer_addr(peer: &str) -> Option<(NodeID, Vec<SocketAddr
let delim = peer.find('@')?;
let (key, host) = peer.split_at(delim);
let pubkey = NodeID::from_slice(&hex::decode(&key).ok()?)?;
- let hosts = host[1..]
- .to_socket_addrs()
- .ok()?
- .collect::<Vec<_>>();
+ let hosts = host[1..].to_socket_addrs().ok()?.collect::<Vec<_>>();
if hosts.is_empty() {
return None;
}