From: anushadasari Date: Thu, 7 Nov 2019 07:27:11 +0000 (+0530) Subject: Merge this if statement with the enclosing one. X-Git-Tag: 6.0.1~168 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F98092%2F2;p=vid.git Merge this if statement with the enclosing one. Merging collapsible if statements increases the code's readability Issue-ID: VID-699 Change-Id: I2c030f36a60957ff63a35de05d3032abe9fed4d9 Signed-off-by: anushadasari --- 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 517f07261..110f24ec6 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 @@ -795,11 +795,9 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER", }; $scope.isShowAssignmentsEnabled = function () { - if (featureFlags.isOn(COMPONENT.FEATURE_FLAGS.FLAG_SHOW_ASSIGNMENTS)) { - if ($scope.serviceOrchestrationStatus) { + if (featureFlags.isOn(COMPONENT.FEATURE_FLAGS.FLAG_SHOW_ASSIGNMENTS) && $scope.serviceOrchestrationStatus) { return $scope.serviceOrchestrationStatus.toLowerCase() === 'assigned'; } - } return false; };