mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 19:45:53 +00:00
Don't check for what can never happen.
This commit is contained in:
@@ -101,20 +101,7 @@ uint32 NetworkOPs::getLedgerID (uint256 const& hash)
|
||||
|
||||
Ledger::pointer NetworkOPs::getLedgerBySeq (const uint32 seq)
|
||||
{
|
||||
Ledger::pointer ret;
|
||||
|
||||
ret = mLedgerMaster->getLedgerBySeq (seq);
|
||||
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (!haveLedger (seq))
|
||||
return ret;
|
||||
|
||||
// We should have this ledger but we don't
|
||||
WriteLog (lsWARNING, NetworkOPs) << "We should have ledger " << seq;
|
||||
|
||||
return ret;
|
||||
return mLedgerMaster->getLedgerBySeq (seq);
|
||||
}
|
||||
|
||||
uint32 NetworkOPs::getCurrentLedgerID ()
|
||||
|
||||
Reference in New Issue
Block a user