From eaa5908a3dcba5a69eb7254255ebeb0e152582fa Mon Sep 17 00:00:00 2001 From: subtly Date: Wed, 18 Mar 2015 17:22:02 +0100 Subject: [PATCH] code review. collapse if statement. --- libp2p/NodeTable.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libp2p/NodeTable.cpp b/libp2p/NodeTable.cpp index 47aefe63c..ccfbeaba4 100644 --- a/libp2p/NodeTable.cpp +++ b/libp2p/NodeTable.cpp @@ -425,8 +425,7 @@ void NodeTable::onReceived(UDPSocketFace*, bi::udp::endpoint const& _from, bytes if (!evictionEntry) { if (auto n = nodeEntry(nodeid)) - if (n->pending) - n->pending = false; + n->pending = false; } else if (m_pubkDiscoverPings.count(_from.address())) m_pubkDiscoverPings.erase(_from.address());