From 69e65cef2f3aff2eed7e333e8962776d3057c475 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 14 Aug 2021 02:52:43 +0200 Subject: [PATCH] Fix shadowing --- src/Cache.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;