Fix accidental shadowing

This commit is contained in:
Nicolas Werner 2022-04-13 20:49:33 +02:00
parent 0a405a7446
commit 060a03e055

View file

@ -1548,7 +1548,7 @@ Cache::updateState(const std::string &room, const mtx::responses::StateEvents &s
std::string_view data;
if (roomsDb_.get(txn, room, data)) {
try {
RoomInfo updatedInfo = json::parse(std::string_view(data.data(), data.size()));
updatedInfo = json::parse(std::string_view(data.data(), data.size()));
} catch (const json::exception &e) {
nhlog::db()->warn("failed to parse room info: room_id ({}), {}: {}",
room,