Skip to content

Commit 4fb738d

Browse files
committed
Address feebacks 2
1 parent 0098829 commit 4fb738d

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Firestore/core/src/remote/serializer.cc

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,16 +1209,8 @@ Serializer::DecodeCursorValue(google_firestore_v1_Cursor& cursor) const {
12091209
google_firestore_v1_StructuredPipeline Serializer::EncodePipeline(
12101210
const api::Pipeline& pipeline) const {
12111211
google_firestore_v1_StructuredPipeline result;
1212-
auto* stages =
1213-
MakeArray<google_firestore_v1_Pipeline_Stage>(pipeline.stages().size());
12141212

1215-
size_t i = 0;
1216-
for (const auto& stage : pipeline.stages()) {
1217-
stages[i++] = stage->to_proto();
1218-
}
1219-
1220-
result.pipeline.stages_count = pipeline.stages().size();
1221-
result.pipeline.stages = stages;
1213+
result.pipeline = pipeline.to_proto().pipeline_value;
12221214

12231215
result.options_count = 0;
12241216
result.options = nullptr;

0 commit comments

Comments
 (0)