diff options
author | shashikanth <shashikanth.vh@huawei.com> | 2017-09-21 15:18:25 +0530 |
---|---|---|
committer | shashikanth <shashikanth.vh@huawei.com> | 2017-09-21 15:18:26 +0530 |
commit | 1b6903f057c5a020f23a5903daf09dffe454ae10 (patch) | |
tree | 371d072380b0329b8d70c783f66fd4a721452d74 /aai-traversal/src | |
parent | 70ac9a27664224d40cee2e08be878a5cecb925cc (diff) |
Removed redundant checks
Fix Major sonar issues in aai/traversal module
https://sonar.onap.org/component_issues?id=org.onap.aai.traversal%3Atraversal#resolved=false|severities=BLOCKER
Change this condition so that it does not always evaluate to "true"
Issue-Id:AAI-212
Change-Id: I64659f0afc1cc497f31cf726a8c29b8bdf849a49
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
Diffstat (limited to 'aai-traversal/src')
-rw-r--r-- | aai-traversal/src/main/java/org/openecomp/aai/dbgraphmap/SearchGraph.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/aai-traversal/src/main/java/org/openecomp/aai/dbgraphmap/SearchGraph.java b/aai-traversal/src/main/java/org/openecomp/aai/dbgraphmap/SearchGraph.java index 32e8cbe..4b0f24d 100644 --- a/aai-traversal/src/main/java/org/openecomp/aai/dbgraphmap/SearchGraph.java +++ b/aai-traversal/src/main/java/org/openecomp/aai/dbgraphmap/SearchGraph.java @@ -942,10 +942,8 @@ public class SearchGraph { invItemList.add(invItem); } } - if (invItemList != null) { - inventoryItems.set("inventoryResponseItem", invItemList); - inventoryItem.set("inventoryResponseItems", inventoryItems); - } + inventoryItems.set("inventoryResponseItem", invItemList); + inventoryItem.set("inventoryResponseItems", inventoryItems); } } return inventoryItem; |