aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/webapp/app/vid/scripts/controller
diff options
context:
space:
mode:
authoranushadasari <danush10@in.ibm.com>2019-10-01 13:03:51 +0530
committeranushadasari <danush10@in.ibm.com>2019-10-01 13:04:12 +0530
commit862abccfdf8097e147ca743471066c4c236194b9 (patch)
tree054ab4ffb9b4174a75c98cdb17cef752bdfe2dfa /vid-app-common/src/main/webapp/app/vid/scripts/controller
parentfdea9e36bd95193d2e920398beee914e4953919c (diff)
Replace "==" with "===".
The == and != operators do type coercion before comparing values. This is bad because it can mask type errors. For example, it evaluates ' \t\r\n' == 0 as true. It is best to always use the side-effect-less === and !== operators instead. Issue-ID: VID-656 Change-Id: If93fe032fae618bb0bd7112c24a0e4d3acab6337 Signed-off-by: anushadasari <danush10@in.ibm.com>
Diffstat (limited to 'vid-app-common/src/main/webapp/app/vid/scripts/controller')
-rwxr-xr-xvid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js
index b3afcd864..6d8dde844 100755
--- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js
@@ -35,7 +35,7 @@
$scope.properties = UtilityService.getProperties();
$scope.resumeStatus = COMPONENT.RESUME_STATUS;
//isPermitted - returned as string from url and converted into boolean
- $scope.isPermitted = $location.search().isPermitted == "true";
+ $scope.isPermitted = $location.search().isPermitted === "true";
$scope.STATUS_CONSTANTS = FIELD.STATUS;
$scope.pnfs = [];// PNF data init;
$scope.collectionResource = {};