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

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

commit c580074df8f7a2fcb0286e3e33517b09e1e7f7fd
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Wed Mar 31 08:32:35 2021 +0200

    Fixed CS
---
 .../component/aws2/lambda/Lambda2Producer.java     | 26 +++++++++++-----------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git 
a/components/camel-aws/camel-aws2-lambda/src/main/java/org/apache/camel/component/aws2/lambda/Lambda2Producer.java
 
b/components/camel-aws/camel-aws2-lambda/src/main/java/org/apache/camel/component/aws2/lambda/Lambda2Producer.java
index 4418a23..cf7a9d6 100644
--- 
a/components/camel-aws/camel-aws2-lambda/src/main/java/org/apache/camel/component/aws2/lambda/Lambda2Producer.java
+++ 
b/components/camel-aws/camel-aws2-lambda/src/main/java/org/apache/camel/component/aws2/lambda/Lambda2Producer.java
@@ -458,23 +458,23 @@ public class Lambda2Producer extends DefaultProducer {
     }
 
     private void listEventSourceMapping(LambdaClient lambdaClient, Exchange 
exchange) throws InvalidPayloadException {
-       ListEventSourceMappingsRequest request = null;
-       ListEventSourceMappingsResponse result;
+        ListEventSourceMappingsRequest request = null;
+        ListEventSourceMappingsResponse result;
         if (getConfiguration().isPojoRequest()) {
             request = 
exchange.getIn().getMandatoryBody(ListEventSourceMappingsRequest.class);
         } else {
-                ListEventSourceMappingsRequest.Builder builder = 
ListEventSourceMappingsRequest.builder();
-                builder.functionName(getEndpoint().getFunction());
-                request = builder.build();
+            ListEventSourceMappingsRequest.Builder builder = 
ListEventSourceMappingsRequest.builder();
+            builder.functionName(getEndpoint().getFunction());
+            request = builder.build();
         }
-            try {
-                result = lambdaClient.listEventSourceMappings(request);
-            } catch (AwsServiceException ase) {
-                LOG.trace("listEventSourceMapping command returned the error 
code {}", ase.awsErrorDetails().errorCode());
-                throw ase;
-            }
-            Message message = getMessageForResponse(exchange);
-            message.setBody(result);
+        try {
+            result = lambdaClient.listEventSourceMappings(request);
+        } catch (AwsServiceException ase) {
+            LOG.trace("listEventSourceMapping command returned the error code 
{}", ase.awsErrorDetails().errorCode());
+            throw ase;
+        }
+        Message message = getMessageForResponse(exchange);
+        message.setBody(result);
     }
 
     private void listTags(LambdaClient lambdaClient, Exchange exchange) throws 
InvalidPayloadException {

Reply via email to