Address compiler warnings #10
This commit is contained in:
parent
8dc3d4466b
commit
04aa511448
@ -346,7 +346,7 @@ auto s3_provider::get_directory_items(const std::string &api_path,
|
||||
const auto is_encrypted = not cfg.encryption_token.empty();
|
||||
std::string key;
|
||||
if (is_encrypted) {
|
||||
auto res = get_item_meta(api_path, META_KEY, key);
|
||||
res = get_item_meta(api_path, META_KEY, key);
|
||||
if (res != api_error::success) {
|
||||
return res;
|
||||
}
|
||||
@ -388,8 +388,8 @@ auto s3_provider::get_directory_items(const std::string &api_path,
|
||||
std::string child_object_name;
|
||||
if (is_encrypted) {
|
||||
child_object_name = child_api_path;
|
||||
auto res = utils::encryption::decrypt_file_path(cfg.encryption_token,
|
||||
child_api_path);
|
||||
res = utils::encryption::decrypt_file_path(cfg.encryption_token,
|
||||
child_api_path);
|
||||
if (res != api_error::success) {
|
||||
return res;
|
||||
}
|
||||
@ -400,7 +400,7 @@ auto s3_provider::get_directory_items(const std::string &api_path,
|
||||
dir_item.api_parent = utils::path::get_parent_api_path(dir_item.api_path);
|
||||
dir_item.directory = directory;
|
||||
dir_item.size = get_size(dir_item);
|
||||
auto res = get_item_meta(child_api_path, dir_item.meta);
|
||||
res = get_item_meta(child_api_path, dir_item.meta);
|
||||
if (res == api_error::item_not_found) {
|
||||
if (directory) {
|
||||
res = create_path_directories(child_api_path, child_object_name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user