summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranushadasari <danush10@in.ibm.com>2019-11-06 16:42:25 +0530
committeranushadasari <danush10@in.ibm.com>2019-11-06 16:42:38 +0530
commitaa283f736b1892426303582d141d3d12cb19b162 (patch)
treee629671f93b68823e5e997c4ec009d4a820a0411
parentfedaea3c645ac54a7fe68d2aece2259adb96d6d4 (diff)
Merge this if statement with the enclosing one.
Merging collapsible if statements increases the code's readability. Issue-ID: VID-699 Change-Id: I4be3daf6ee87a94fef5ec3687f999b0a67ae1f06 Signed-off-by: anushadasari <danush10@in.ibm.com>
-rwxr-xr-xvid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js
index 6d8dde844..9037b99f4 100755
--- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js
@@ -162,13 +162,10 @@
if ((!($scope.isObjectEmpty(svcModel))) && (!($scope.isObjectEmpty(svcModel.vnfs)))) {
if ((svcModel.isNewFlow) && (vnfModelCustomizationUuid != null)) {
vnfModel = svcModel.vnfs[vnfModelCustomizationUuid];
- if (vnfModel !== undefined) {
-
- if (!($scope.isObjectEmpty(vnfModel.volumeGroups))) {
+ if (vnfModel !== undefined && !($scope.isObjectEmpty(vnfModel.volumeGroups))) {
//console.log ("vnfModel.volumeGroups: "); console.log (JSON.stringify(vnfModel.volumeGroups, null, 4));
return (vnfModel.volumeGroups);
}
- }
}
else {
// old flow