diff --git a/src/Consumer.cc b/src/Consumer.cc index 9aa48c72..3546f834 100644 --- a/src/Consumer.cc +++ b/src/Consumer.cc @@ -293,8 +293,8 @@ Napi::Value Consumer::BatchReceive(const Napi::CallbackInfo &info) { pulsar_message_t *rawMessage = pulsar_messages_get(rawMessages, i); pulsar_message_t *message = pulsar_message_create(); pulsar_message_copy(rawMessage, message); - Napi::Object obj = Message::NewInstance( - {}, std::shared_ptr(message, pulsar_message_free)); + Napi::Object obj = + Message::NewInstance({}, std::shared_ptr(message, pulsar_message_free)); jsArray.Set(i, obj); } pulsar_messages_free(rawMessages);