From 508a13e8add9b8045b55d3325ece076e563ffba9 Mon Sep 17 00:00:00 2001 From: Artem Naluzhnyy Date: Fri, 9 Aug 2019 11:58:30 +0200 Subject: Remove repeated conditional test in ​buildServiceErrorResponse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coverity-scan: CID-203826 Issue-ID: SO-2211 Signed-off-by: Artem Naluzhnyy Change-Id: I18d788e361b502e392f7f59ff6bc772dfee394bd --- .../apihandlerinfra/tenantisolation/ModelDistributionRequest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mso-api-handlers/mso-api-handler-infra/src') diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/tenantisolation/ModelDistributionRequest.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/tenantisolation/ModelDistributionRequest.java index 216588432b..ef5abe9f74 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/tenantisolation/ModelDistributionRequest.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/tenantisolation/ModelDistributionRequest.java @@ -137,10 +137,8 @@ public class ModelDistributionRequest { se.setMessageId(messageId); se.setText(text); if (variables != null) { - if (variables != null) { - for (String variable : variables) { - se.getVariables().add(variable); - } + for (String variable : variables) { + se.getVariables().add(variable); } } re.setServiceException(se); -- cgit 1.2.3-korg