Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Nov 8, 2024
1 parent 4d2c076 commit 49a72c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/clp_ffi_js/ir/StreamReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include <clp/Array.hpp>
#include <clp/ErrorCode.hpp>
#include <clp/ffi/ir_stream/decoding_methods.hpp>
#include <clp/ffi/ir_stream/protocol_constants.hpp>
#include <clp/ReaderInterface.hpp>
#include <clp/streaming_compression/zstd/Decompressor.hpp>
Expand Down Expand Up @@ -117,9 +116,7 @@ EMSCRIPTEN_BINDINGS(ClpStreamReader) {
// JS types used as inputs
emscripten::register_type<clp_ffi_js::ir::DataArrayTsType>("Uint8Array");
emscripten::register_type<clp_ffi_js::ir::LogLevelFilterTsType>("number[] | null");
emscripten::register_type<clp_ffi_js::ir::ReaderOptions>(
"{timestampKey: string} | null"
);
emscripten::register_type<clp_ffi_js::ir::ReaderOptions>("{timestampKey: string} | null");

// JS types used as outputs
emscripten::enum_<clp_ffi_js::ir::IrStreamType>("IrStreamType")
Expand Down
9 changes: 5 additions & 4 deletions src/clp_ffi_js/ir/StructuredIrStreamReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ StructuredIrStreamReader::StructuredIrStreamReader(
std::shared_ptr<std::vector<clp::ffi::KeyValuePairLogEvent>> deserialized_log_events
)
: m_deserialized_log_events{std::move(deserialized_log_events)},
m_stream_reader_data_context{std::make_unique<
StreamReaderDataContext<StructuredIrDeserializer>>(
std::move(stream_reader_data_context)
)} {}
m_stream_reader_data_context{
std::make_unique<StreamReaderDataContext<StructuredIrDeserializer>>(
std::move(stream_reader_data_context)
)
} {}
} // namespace clp_ffi_js::ir

0 comments on commit 49a72c3

Please sign in to comment.