diff --git a/src/Cache.cpp b/src/Cache.cpp index fccf1c53..8b8b2985 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -4013,9 +4013,8 @@ Cache::markUserKeysOutOfDate(lmdb::txn &txn, UserKeyCache cacheEntry; auto res = db.get(txn, user, oldKeys); if (res) { - auto cacheEntry = - json::parse(std::string_view(oldKeys.data(), oldKeys.size())) - .get(); + cacheEntry = json::parse(std::string_view(oldKeys.data(), oldKeys.size())) + .get(); } cacheEntry.last_changed = sync_token;