Skip to content

Commit

Permalink
added more tests for native binary reader
Browse files Browse the repository at this point in the history
Signed-off-by: Timm Ruppert <[email protected]>
  • Loading branch information
TimmRuppert committed Nov 7, 2024
1 parent 283b9ce commit 0930ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tracefile/reader/NativeBinaryTraceFileReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void NativeBinaryTraceFileReader::Close() { trace_file_.close(); }
bool NativeBinaryTraceFileReader::HasNext() { return (trace_file_ && trace_file_.peek() != EOF); }

std::optional<ReadResult> NativeBinaryTraceFileReader::ReadMessage() {
if (!trace_file_) {
if ((!trace_file_) || !trace_file_.is_open()) {
return std::nullopt;
}
const auto serialized_msg = ReadNextMessageFromFile();
Expand Down

0 comments on commit 0930ecf

Please sign in to comment.