This commit is contained in:
@ -871,7 +871,7 @@ auto encrypt_provider::read_file_bytes(const std::string &api_path,
|
||||
auto file_data = row->get_column("data").get_value_as_json();
|
||||
|
||||
auto opt_size = utils::file::file{source_path}.size();
|
||||
if (opt_size.has_value()) {
|
||||
if (not opt_size.has_value()) {
|
||||
return api_error::os_error;
|
||||
}
|
||||
|
||||
|
@ -893,7 +893,7 @@ auto s3_provider::upload_file_impl(const std::string &api_path,
|
||||
}
|
||||
|
||||
auto opt_size = file.size();
|
||||
if (opt_size.has_value()) {
|
||||
if (not opt_size.has_value()) {
|
||||
return api_error::comm_error;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user