mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-21 04:05:51 +00:00
Fix unused variable errors (#101)
This commit is contained in:
@@ -483,8 +483,8 @@ PostgresBackend::fetchTransactions(
|
|||||||
"WHERE HASH = \'\\x"
|
"WHERE HASH = \'\\x"
|
||||||
<< ripple::strHex(hash) << "\'";
|
<< ripple::strHex(hash) << "\'";
|
||||||
|
|
||||||
auto res = pgQuery(sql.str().data(), yield);
|
if (auto const res = pgQuery(sql.str().data(), yield);
|
||||||
if (size_t numRows = checkResult(res, 4))
|
checkResult(res, 4))
|
||||||
{
|
{
|
||||||
results[i] = {
|
results[i] = {
|
||||||
res.asUnHexedBlob(0, 0),
|
res.asUnHexedBlob(0, 0),
|
||||||
@@ -555,9 +555,8 @@ PostgresBackend::doFetchLedgerObjects(
|
|||||||
<< " AND ledger_seq <= " << std::to_string(sequence)
|
<< " AND ledger_seq <= " << std::to_string(sequence)
|
||||||
<< " ORDER BY ledger_seq DESC LIMIT 1";
|
<< " ORDER BY ledger_seq DESC LIMIT 1";
|
||||||
|
|
||||||
auto res = pgQuery(sql.str().data(), yield);
|
if (auto const res = pgQuery(sql.str().data(), yield);
|
||||||
|
checkResult(res, 1))
|
||||||
if (size_t numRows = checkResult(res, 1))
|
|
||||||
results[i] = res.asUnHexedBlob();
|
results[i] = res.asUnHexedBlob();
|
||||||
|
|
||||||
if (--numRemaining == 0)
|
if (--numRemaining == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user