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
Cache::saveState(const mtx::responses::Sync &res)
{
@ -1879,17 +1878,16 @@ Cache::saveState(const mtx::responses::Sync &res)
auto j = nlohmann::json(event);
try {
accountDataDb.put(txn, j["type"].get<std::string>(), j.dump());
}
catch (const lmdb::error &e) {
nhlog::db()->warn("failed to save state after sync: {}, skipping event", e.what());
return;
accountDataDb.put(txn, j["type"].get<std::string>(), j.dump());
} catch (const lmdb::error &e) {
nhlog::db()->warn("failed to save state after sync: {}, skipping event",
e.what());
return;
}
},
ev);
}
auto userKeyCacheDb = getUserKeysDb(txn);
std::set<std::string> spaces_with_updates;