Skip to content

Commit b5077ac

Browse files
committed
resolve ai comments
1 parent a69a725 commit b5077ac

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎google/cloud/storage/internal/object_requests.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ std::string ComposeObjectRequest::JsonPayload() const {
379379
source_object_list.emplace_back(std::move(source_object_json));
380380
}
381381
compose_object_payload_json["sourceObjects"] = source_object_list;
382-
if (HasOption<DeleteSourceObjects>() && GetOption<DeleteSourceObjects>().value()) {
382+
if (GetOption<DeleteSourceObjects>().value_or(false)) {
383383
compose_object_payload_json["deleteSourceObjects"] = true;
384384
}
385385

‎google/cloud/storage/well_known_parameters.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,9 @@ struct ReturnPartialSuccess
605605
}
606606
};
607607

608+
/**
609+
* Controls if the source objects should be deleted after a successful compose.
610+
*/
608611
struct DeleteSourceObjects
609612
: public internal::WellKnownParameter<DeleteSourceObjects, bool> {
610613
using WellKnownParameter<DeleteSourceObjects, bool>::WellKnownParameter;

0 commit comments

Comments
 (0)
⌂ 换网址