This is an automated email from the ASF dual-hosted git repository.

bvahdat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 08a66ab  fix the failing source check validation
08a66ab is described below

commit 08a66abb54fe15f03ad611936cd7758f67e620c5
Author: Babak Vahdat <bvah...@apache.org>
AuthorDate: Sun Jun 20 22:30:01 2021 +0200

    fix the failing source check validation
---
 .../org/apache/camel/component/rest/RestProducerBindingProcessor.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducerBindingProcessor.java
 
b/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducerBindingProcessor.java
index db15503..2fc4bdb 100644
--- 
a/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducerBindingProcessor.java
+++ 
b/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducerBindingProcessor.java
@@ -322,8 +322,8 @@ public class RestProducerBindingProcessor extends 
DelegateAsyncProcessor {
             }
 
             // is the body empty
-            if ((exchange.hasOut() && exchange.getOut().getBody() == null)
-                    || (!exchange.hasOut() && exchange.getIn().getBody() == 
null)) {
+            if (exchange.hasOut() && exchange.getOut().getBody() == null
+                    || !exchange.hasOut() && exchange.getIn().getBody() == 
null) {
                 return;
             }
 

Reply via email to