Skip to content

Commit

Permalink
Use to replace
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZhihao-723 committed Dec 9, 2024
1 parent de335ad commit 8403be9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions components/core/src/clp/ffi/KeyValuePairLogEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,30 +577,30 @@ auto KeyValuePairLogEvent::serialize_to_json(
if (auto_gen_keys_schema_subtree_bitmap_result.has_error()) {
return auto_gen_keys_schema_subtree_bitmap_result.error();
}
auto serialized_auto_generated_kv_pairs_result{serialize_node_id_value_pairs_to_json(
auto serialized_auto_gen_kv_pairs_result{serialize_node_id_value_pairs_to_json(
*m_auto_gen_keys_schema_tree,
m_auto_gen_node_id_value_pairs,
auto_gen_keys_schema_subtree_bitmap_result.value()
)};
if (serialized_auto_generated_kv_pairs_result.has_error()) {
return serialized_auto_generated_kv_pairs_result.error();
if (serialized_auto_gen_kv_pairs_result.has_error()) {
return serialized_auto_gen_kv_pairs_result.error();
}

auto const user_gen_keys_schema_subtree_bitmap_result{get_user_gen_keys_schema_subtree_bitmap()
};
if (user_gen_keys_schema_subtree_bitmap_result.has_error()) {
return user_gen_keys_schema_subtree_bitmap_result.error();
}
auto serialized_user_generated_kv_pairs_result{serialize_node_id_value_pairs_to_json(
auto serialized_user_gen_kv_pairs_result{serialize_node_id_value_pairs_to_json(
*m_user_gen_keys_schema_tree,
m_user_gen_node_id_value_pairs,
user_gen_keys_schema_subtree_bitmap_result.value()
)};
if (serialized_user_generated_kv_pairs_result.has_error()) {
return serialized_user_generated_kv_pairs_result.error();
if (serialized_user_gen_kv_pairs_result.has_error()) {
return serialized_user_gen_kv_pairs_result.error();
}

return {std::move(serialized_auto_generated_kv_pairs_result.value()),
std::move(serialized_user_generated_kv_pairs_result.value())};
return {std::move(serialized_auto_gen_kv_pairs_result.value()),
std::move(serialized_user_gen_kv_pairs_result.value())};
}
} // namespace clp::ffi

0 comments on commit 8403be9

Please sign in to comment.