refactor
This commit is contained in:
@ -27,13 +27,12 @@ std::atomic<const i_exception_handler *> exception_handler{
|
||||
|
||||
auto create_error_message(std::vector<std::string_view> items) -> std::string {
|
||||
std::stringstream stream{};
|
||||
stream << function_name;
|
||||
for (std::size_t idx = 0U; idx < items.size(); ++idx) {
|
||||
if (idx > 0) {
|
||||
stream << '|';
|
||||
}
|
||||
|
||||
stream << item;
|
||||
stream << items.at(idx);
|
||||
}
|
||||
|
||||
return stream.str();
|
||||
|
@ -397,6 +397,8 @@ auto file::sha256() -> std::optional<std::string> {
|
||||
#endif // defined(PROJECT_ENABLE_LIBSODIUM)
|
||||
|
||||
auto file::remove() -> bool {
|
||||
REPERTORY_USES_FUNCTION_NAME();
|
||||
|
||||
close();
|
||||
|
||||
return utils::retry_action([this]() -> bool {
|
||||
|
Reference in New Issue
Block a user