Merge this if statement with the enclosing one. 92/98092/2
authoranushadasari <danush10@in.ibm.com>
Thu, 7 Nov 2019 07:27:11 +0000 (12:57 +0530)
committerIttay Stern <ittay.stern@att.com>
Sun, 24 Nov 2019 16:35:32 +0000 (16:35 +0000)
Merging collapsible if statements increases the code's readability

Issue-ID: VID-699
Change-Id: I2c030f36a60957ff63a35de05d3032abe9fed4d9
Signed-off-by: anushadasari <danush10@in.ibm.com>
vid-app-common/src/main/webapp/app/vid/scripts/controller/aaiSubscriberController.js

index 517f072..110f24e 100755 (executable)
@@ -795,11 +795,9 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
         };\r
 \r
         $scope.isShowAssignmentsEnabled = function () {\r
-            if (featureFlags.isOn(COMPONENT.FEATURE_FLAGS.FLAG_SHOW_ASSIGNMENTS)) {\r
-                if ($scope.serviceOrchestrationStatus) {\r
+            if (featureFlags.isOn(COMPONENT.FEATURE_FLAGS.FLAG_SHOW_ASSIGNMENTS) && $scope.serviceOrchestrationStatus) {\r
                     return $scope.serviceOrchestrationStatus.toLowerCase() === 'assigned';\r
                 }\r
-            }\r
             return false;\r
         };\r
 \r