Sonar Major 45/30245/1
authorPrasadNaidu <RV00493633@techmahindra.com>
Mon, 5 Feb 2018 10:42:40 +0000 (16:12 +0530)
committerPrasadNaidu <RV00493633@techmahindra.com>
Mon, 5 Feb 2018 10:43:05 +0000 (16:13 +0530)
Replace != with !==
commonUtil.js:L22

Sonar Link : https://sonar.onap.org/component_issues/index?id=org.onap.aai.esr-gui%3Aaai-esr-gui#resolved=false|severities=MAJOR|assignees=PrasadNaidu
Location : src/main/webapp/extsys/ems/js/commonUtil.js

Change-Id: Ia3a84e08e88b04ee0cea325308f5236d942f8d5b
Issue-ID: AAI-729
Signed-off-by: PrasadNaidu <RV00493633@techmahindra.com>
portal/src/main/webapp/extsys/ems/js/commonUtil.js

index 6a55212..ca64eb5 100644 (file)
@@ -19,7 +19,7 @@ commonUtil.arrayRemove = function (aryInstance, index) {
         return;
     }
     for (var i = 0, n = 0; i < aryInstance.length; i++) {
-        if (aryInstance[i] != aryInstance[dx]) {
+        if (aryInstance[i] !== aryInstance[dx]) {
             aryInstance[n++] = aryInstance[i];
         }
     }