mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-27 11:43:26 -03:00
style: remove unnecessary braces
They were needed to define the scope of `LOCK(cs_vNodes)` which was removed in the previous commit. Re-indent in a separate commit to ease review (use `--ignore-space-change`).
This commit is contained in:
parent
664ac22c53
commit
c7eb19ec83
1 changed files with 27 additions and 29 deletions
|
@ -1340,7 +1340,6 @@ bool CConnman::GenerateSelectSet(const std::vector<CNode*>& nodes,
|
||||||
recv_set.insert(hListenSocket.socket);
|
recv_set.insert(hListenSocket.socket);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
for (CNode* pnode : nodes) {
|
for (CNode* pnode : nodes) {
|
||||||
// Implement the following logic:
|
// Implement the following logic:
|
||||||
// * If there is data to send, select() for sending data. As this only
|
// * If there is data to send, select() for sending data. As this only
|
||||||
|
@ -1373,7 +1372,6 @@ bool CConnman::GenerateSelectSet(const std::vector<CNode*>& nodes,
|
||||||
recv_set.insert(pnode->hSocket);
|
recv_set.insert(pnode->hSocket);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return !recv_set.empty() || !send_set.empty() || !error_set.empty();
|
return !recv_set.empty() || !send_set.empty() || !error_set.empty();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue