Made style consistent with clang-format

This commit is contained in:
Skye J 2023-05-30 17:59:40 -04:00
parent b5d5d1c393
commit 7fb8fac6ca

View file

@ -1849,7 +1849,6 @@ isMessage(const mtx::events::RoomEvent<mtx::events::voip::CallHangUp> &)
// } // }
} }
void void
Cache::saveState(const mtx::responses::Sync &res) Cache::saveState(const mtx::responses::Sync &res)
{ {
@ -1880,16 +1879,15 @@ Cache::saveState(const mtx::responses::Sync &res)
auto j = nlohmann::json(event); auto j = nlohmann::json(event);
try { try {
accountDataDb.put(txn, j["type"].get<std::string>(), j.dump()); accountDataDb.put(txn, j["type"].get<std::string>(), j.dump());
} } catch (const lmdb::error &e) {
catch (const lmdb::error &e) { nhlog::db()->warn("failed to save state after sync: {}, skipping event",
nhlog::db()->warn("failed to save state after sync: {}, skipping event", e.what()); e.what());
return; return;
} }
}, },
ev); ev);
} }
auto userKeyCacheDb = getUserKeysDb(txn); auto userKeyCacheDb = getUserKeysDb(txn);
std::set<std::string> spaces_with_updates; std::set<std::string> spaces_with_updates;