From ab07d7e192d7eb1b88a8edbf9b851483de0f88c8 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 22 Dec 2024 07:32:09 -0600 Subject: [PATCH] refactor --- repertory/librepertory/src/db/impl/rdb_file_mgr_db.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repertory/librepertory/src/db/impl/rdb_file_mgr_db.cpp b/repertory/librepertory/src/db/impl/rdb_file_mgr_db.cpp index 2bf76fca..573ac00e 100644 --- a/repertory/librepertory/src/db/impl/rdb_file_mgr_db.cpp +++ b/repertory/librepertory/src/db/impl/rdb_file_mgr_db.cpp @@ -288,9 +288,9 @@ auto rdb_file_mgr_db::rename_resume(const std::string &from_api_path, auto res = perform_action( function_name, [this, &from_api_path, ¬_found, &value]() -> rocksdb::Status { - auto res = db_->Get(rocksdb::ReadOptions{}, from_api_path, &value); - not_found = res.IsNotFound(); - return res; + auto result = db_->Get(rocksdb::ReadOptions{}, from_api_path, &value); + not_found = result.IsNotFound(); + return result; }); if (not_found) { return true;