Skip to content

Commit

Permalink
chore: reorder some lines of code
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanYuYuan committed Dec 4, 2024
1 parent 17865d2 commit 0255c37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rmw_zenoh_cpp/src/detail/attachment_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ attachment_data_t::attachment_data_t(const z_loaned_bytes_t * attachment)
ze_deserializer_t deserializer = ze_deserializer_from_bytes(attachment);
z_owned_string_t key;

ze_deserializer_deserialize_string(&deserializer, &key);

// Deserialize the sequence_number
ze_deserializer_deserialize_string(&deserializer, &key);
if (std::string_view(
z_string_data(z_loan(key)),
z_string_len(z_loan(key))) != "sequence_number")
Expand Down

0 comments on commit 0255c37

Please sign in to comment.