From eecc12d39cc9f9446a6de4bbc6a6754c52e091b0 Mon Sep 17 00:00:00 2001 From: anushadasari Date: Thu, 7 Nov 2019 12:52:51 +0530 Subject: Merge this if statement with the enclosing one. Merging collapsible if statements increases the code's readability. Issue-ID: VID-699 Change-Id: I9460c6b621815339f873761c0e7ba0bf9c479578 Signed-off-by: anushadasari --- .../main/webapp/app/vid/scripts/controller/aaiSubscriberController.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'vid-app-common/src/main/webapp/app') diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js index bf3d54af0..517f07261 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js @@ -489,8 +489,7 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", if (model && model.vnfs && !_.isEmpty(model.vnfs)) { Object.keys(model.vnfs).forEach(function (key) { var vnf = model.vnfs[key]; - if (vnf.vfcInstanceGroups && !_.isEmpty(vnf.vfcInstanceGroups)) { - if (vnf.uuid === genericVnf.modelVersionId) { + if (vnf.vfcInstanceGroups && !_.isEmpty(vnf.vfcInstanceGroups) && vnf.uuid === genericVnf.modelVersionId) { AaiService.getInstanceGroupsByVNFInstanceId(genericVnf.nodeId, function (response) { //success handleGetRelatedInstanceGroupsResponseForVnf(response, genericVnf); @@ -502,7 +501,6 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", } ) } - } }); } } -- cgit 1.2.3-korg