Apply clang-tidy diff

This commit is contained in:
Bart
2026-04-23 18:52:19 -07:00
parent 44590a7008
commit 430f770f2a

View File

@@ -3492,11 +3492,17 @@ PeerImp::processLedgerRequest(
// we always set the `nodeid` field. However, when it is supported then we
// set the `id` field for inner nodes and the `depth` field for leaf nodes.
if (!useLedgerNodeDepth)
{
node->set_nodeid(d.nodeID.getRawString());
}
else if (d.isLeaf)
{
node->set_depth(d.nodeID.getDepth());
}
else
{
node->set_id(d.nodeID.getRawString());
}
}
}
else