Small cleanups.

This commit is contained in:
JoelKatz
2013-01-30 20:56:11 -08:00
parent 2ff3583b7d
commit b662167683
2 changed files with 3 additions and 12 deletions

View File

@@ -504,10 +504,7 @@ Ledger::pointer Ledger::getSQL(const std::string& sql)
ScopedLock sl(theApp->getLedgerDB()->getDBLock());
if (!db->executeSQL(sql) || !db->startIterRows())
{
cLog(lsDEBUG) << "No ledger for query: " << sql;
return Ledger::pointer();
}
db->getStr("LedgerHash", hash);
ledgerHash.SetHex(hash, true);