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 0f98350706ddfd72b5f989fa927fc2b67e3a6f32 Author: Andrea Cosentino <[email protected]> AuthorDate: Tue Mar 30 09:20:18 2021 +0200 Fixed CS --- .../component/aws2/lambda/Lambda2Producer.java | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 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 2b28ef5..1c56c32 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 @@ -173,24 +173,24 @@ public class Lambda2Producer extends DefaultProducer { } private void deleteFunction(LambdaClient lambdaClient, Exchange exchange) throws InvalidPayloadException { - DeleteFunctionRequest request = null; - DeleteFunctionResponse result; + DeleteFunctionRequest request = null; + DeleteFunctionResponse result; if (getConfiguration().isPojoRequest()) { request = exchange.getIn().getMandatoryBody(DeleteFunctionRequest.class); } else { - DeleteFunctionRequest.Builder builder = DeleteFunctionRequest.builder(); - builder.functionName(getEndpoint().getFunction()); - request = builder.build(); + DeleteFunctionRequest.Builder builder = DeleteFunctionRequest.builder(); + builder.functionName(getEndpoint().getFunction()); + request = builder.build(); } - try { - result = lambdaClient - .deleteFunction(request); - } catch (AwsServiceException ase) { - LOG.trace("deleteFunction command returned the error code {}", ase.awsErrorDetails().errorCode()); - throw ase; - } - Message message = getMessageForResponse(exchange); - message.setBody(result); + try { + result = lambdaClient + .deleteFunction(request); + } catch (AwsServiceException ase) { + LOG.trace("deleteFunction command returned the error code {}", ase.awsErrorDetails().errorCode()); + throw ase; + } + Message message = getMessageForResponse(exchange); + message.setBody(result); } private void listFunctions(LambdaClient lambdaClient, Exchange exchange) throws InvalidPayloadException {
