From c3c435eb583ca80e3626a6811a0dce3ac7bd7411 Mon Sep 17 00:00:00 2001 From: Rupinder Date: Thu, 2 Apr 2020 12:51:23 +0530 Subject: removed code smells Reduced the code smells Issue-ID: CCSDK-2232 Change-Id: I30eec021ba50f28dc1df2fd554c4e349c4a76dd6 Signed-off-by: Rupinder --- .../ccsdk/sli/adaptors/saltstack/model/SaltstackMessageParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'saltstack-adapter/saltstack-adapter-provider') diff --git a/saltstack-adapter/saltstack-adapter-provider/src/main/java/org/onap/ccsdk/sli/adaptors/saltstack/model/SaltstackMessageParser.java b/saltstack-adapter/saltstack-adapter-provider/src/main/java/org/onap/ccsdk/sli/adaptors/saltstack/model/SaltstackMessageParser.java index 50d08e23..3bb401ad 100644 --- a/saltstack-adapter/saltstack-adapter-provider/src/main/java/org/onap/ccsdk/sli/adaptors/saltstack/model/SaltstackMessageParser.java +++ b/saltstack-adapter/saltstack-adapter-provider/src/main/java/org/onap/ccsdk/sli/adaptors/saltstack/model/SaltstackMessageParser.java @@ -307,7 +307,8 @@ public class SaltstackMessageParser { public SaltstackResult parseResponse(SvcLogicContext ctx, String pfx, SaltstackResult saltstackResult, boolean slsExec) throws IOException { int code = saltstackResult.getStatusCode(); - boolean executionStatus = true, retCodeFound = false; + boolean executionStatus = true; + boolean retCodeFound = false; if (code != SaltstackResultCodes.SUCCESS.getValue()) { return saltstackResult; } -- cgit 1.2.3-korg