refactor
All checks were successful
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good
BlockStorage/repertory_linux_builds/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2023-11-14 20:09:50 -06:00
parent ee34a1e361
commit d808b2dd19

View File

@ -364,9 +364,9 @@ auto file_manager::open(const std::string &api_path, bool directory,
};
recur_mutex_lock open_lock(open_file_mtx_);
auto it = open_file_lookup_.find(api_path);
if (it != open_file_lookup_.end()) {
create_and_add_handle(it->second);
auto iter = open_file_lookup_.find(api_path);
if (iter != open_file_lookup_.end()) {
create_and_add_handle(iter->second);
return api_error::success;
}