refactor
This commit is contained in:
parent
6a820837cc
commit
2661885cf2
@ -406,14 +406,12 @@ void open_file::remove_all() {
|
||||
recur_mutex_lock file_lock(file_mtx_);
|
||||
open_file_base::remove_all();
|
||||
|
||||
set_api_error(api_error::success);
|
||||
|
||||
if (modified_) {
|
||||
mgr_.remove_upload(get_api_path());
|
||||
}
|
||||
|
||||
modified_ = false;
|
||||
removed_ = true;
|
||||
|
||||
set_api_error(api_error::success);
|
||||
|
||||
mgr_.remove_upload(get_api_path());
|
||||
}
|
||||
|
||||
auto open_file::resize(std::uint64_t new_file_size) -> api_error {
|
||||
|
Loading…
x
Reference in New Issue
Block a user