This commit is contained in:
2024-12-24 21:38:44 -06:00
parent 2ce86e1498
commit 12dfc0ab94
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ E_SIMPLE1(item_timeout, trace, true,
std::string, api_path, ap, E_FROM_STRING
);
E_SIMPLE3(download_type_selected, info, true,
E_SIMPLE3(download_type_selected, debug, true,
std::string, api_path, ap, E_FROM_STRING,
std::string, source, src, E_FROM_STRING,
download_type, download_type, type, E_FROM_DOWNLOAD_TYPE

View File

@ -605,6 +605,7 @@ auto file_manager::remove_source_and_shrink_cache(
REPERTORY_USES_FUNCTION_NAME();
auto file = utils::file::file{source_path};
auto source_size = file.size().value_or(0U);
if (not file.remove()) {
utils::error::raise_api_path_error(function_name, api_path, source_path,
@ -613,7 +614,6 @@ auto file_manager::remove_source_and_shrink_cache(
return false;
}
auto source_size = file.size().value_or(0U);
if (not allocated || source_size == 0U) {
return true;
}