Merging collapsible if statements increases the code's readability
Issue-ID: VID-699
Change-Id: I2c030f36a60957ff63a35de05d3032abe9fed4d9
Signed-off-by: anushadasari <danush10@in.ibm.com>
};\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