From 41dc420edd2cb96d9a4d7deb15d1ef9984fecdcc Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Tue, 6 Aug 2019 08:16:19 -0400 Subject: Fix linting issues --- src/Cache.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/Cache.cpp') diff --git a/src/Cache.cpp b/src/Cache.cpp index 7b688ac7..9bf3b5b0 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -1972,7 +1972,6 @@ Cache::saveTimelineMentions(lmdb::txn &txn, using namespace mtx::events::state; for (const auto &n : res.notifications) { - const auto event_id = utils::event_id(n.event); // double check that we have the correct room_id... @@ -1981,10 +1980,7 @@ Cache::saveTimelineMentions(lmdb::txn &txn, json obj = json::object(); - lmdb::dbi_put(txn, - db, - lmdb::val(event_id), - lmdb::val(obj.dump())); + lmdb::dbi_put(txn, db, lmdb::val(event_id), lmdb::val(obj.dump())); } txn.commit(); -- cgit 1.5.1