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

This commit is contained in:
Scott E. Graves 2025-04-03 21:18:37 -05:00
parent 6f9b1f8f08
commit c2dbfc970a

View File

@ -324,7 +324,6 @@ auto sia_provider::get_file_list(api_file_list &list, std::string &marker) const
return api_error::comm_error;
}
marker = object_list.at("nextMarker").get<std::string>();
iterate_objects("/", object_list,
[&](auto &&entry_api_path, auto &&directory, auto &&entry) {
if (directory) {
@ -345,6 +344,7 @@ auto sia_provider::get_file_list(api_file_list &list, std::string &marker) const
entry["size"].template get<std::uint64_t>(), meta));
});
marker = object_list.at("nextMarker").get<std::string>();
return object_list.at("hasMore").get<bool>() ? api_error::more_data
: api_error::success;
} catch (const std::exception &e) {