vineetsaurabh commented on code in PR #18212: URL: https://github.com/apache/camel/pull/18212#discussion_r2123437633
########## components/camel-nats/src/main/java/org/apache/camel/component/nats/NatsProducer.java: ########## @@ -104,18 +112,12 @@ public boolean process(Exchange exchange, AsyncCallback callback) { }); return false; } else { - LOG.debug("Publishing to topic: {}", config.getTopic()); - - final NatsMessage.Builder builder = NatsMessage.builder() - .data(body) - .subject(config.getTopic()) - .headers(this.buildHeaders(exchange)); - - if (ObjectHelper.isNotEmpty(config.getReplySubject())) { - final String replySubject = config.getReplySubject(); - builder.replyTo(replySubject); + LOG.debug("Publishing to subject: {}", config.getTopic()); Review Comment: Sorry, I do not understand your comment. `else` block is the existing code. It was not inside `try .. catch (exception)`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org