Merging collapsible if statements increases the code's readability.
Issue-ID: VID-699
Change-Id: Icb52f1e1fcaec6ebfec3711c32c4cfcca9582af6
Signed-off-by: anushadasari <danush10@in.ibm.com>
var isVfc = false;\r
\r
_.map($scope.service.model.vnfs, function (value, key) {\r
- if (value.uuid == vnf.uuid) {\r
- if (!_.isEmpty(value.vfcInstanceGroups)) {\r
+ if (value.uuid == vnf.uuid && !_.isEmpty(value.vfcInstanceGroups)) {\r
isVfc = true;\r
var queryData = {\r
serviceModelId: $scope.service.model.service.uuid,\r
$scope.$broadcast(COMPONENT.IFRAME_DIALOG, queryData);\r
return;\r
}\r
- }\r
});\r
\r
DataService.setSubscriberName($scope.service.instance.subscriberName);\r