refactor
This commit is contained in:
parent
ee34a1e361
commit
d808b2dd19
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user