From: anushadasari Date: Tue, 1 Oct 2019 07:33:51 +0000 (+0530) Subject: Replace "==" with "===". X-Git-Tag: 6.0.1~250^2~1 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=862abccfdf8097e147ca743471066c4c236194b9;p=vid.git 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 --- 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 = {};