Skip to content

Commit

Permalink
Remove redundant encoding check I wrongly added back.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlion committed Jul 15, 2024
1 parent 746006f commit c64bb13
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cpp/src/ffi_go/ir/deserializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ auto deserialize_to_next_log_event(BufferReader& ir_buf, Deserializer* deseriali
deserializer->m_log_event.m_log_message,
timestamp
);
} else if constexpr (std::is_same_v<encoded_variable_t, four_byte_encoded_variable_t>) {
} else {
epoch_time_ms_t timestamp_delta{};
err = clp::ffi::ir_stream::four_byte_encoding::deserialize_log_event(
ir_buf,
Expand All @@ -246,8 +246,6 @@ auto deserialize_to_next_log_event(BufferReader& ir_buf, Deserializer* deseriali
timestamp_delta
);
timestamp = deserializer->m_timestamp + timestamp_delta;
} else {
static_assert(cAlwaysFalse<encoded_variable_t>, "Invalid/unhandled encoding type");
}

if (IRErrorCode::IRErrorCode_Success != err) {
Expand Down

0 comments on commit c64bb13

Please sign in to comment.