From b6f8fb70024e863152ed9a234e3535363b7d23f9 Mon Sep 17 00:00:00 2001 From: anushadasari Date: Thu, 7 Nov 2019 12:57:11 +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: I2c030f36a60957ff63a35de05d3032abe9fed4d9 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/vid/scripts/controller/aaiSubscriberController.js') 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; }; -- cgit 1.2.3-korg