Add a semicolon at the end of this statement. 69/94069/1
authoranushadasari <danush10@in.ibm.com>
Thu, 22 Aug 2019 06:52:50 +0000 (12:22 +0530)
committeranushadasari <danush10@in.ibm.com>
Thu, 22 Aug 2019 06:53:16 +0000 (12:23 +0530)
In JavaScript, the semicolon (;) is optional as a statement separator, but omitting semicolons can be confusing, and lead to unexpected results because a semicolon is implicitly inserted at the end of each line.

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

index e66b8ff..bf3d54a 100755 (executable)
@@ -55,7 +55,7 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
                 componentId: COMPONENT.VNF,\r
                 callbackFunction: callbackFunction\r
             });\r
-        }\r
+        };\r
         $scope.popup = new Object();\r
 \r
 \r
@@ -85,18 +85,18 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
 \r
         $scope.getServiceTypes = function (globalCustomerId) {\r
             DataService.setGlobalCustomerId(globalCustomerId);\r
-            DataService.setServiceIdList($scope.customerList)\r
+            DataService.setServiceIdList($scope.customerList);\r
 \r
             if (globalCustomerId !== "" && globalCustomerId !== undefined) {\r
                 window.location.href = COMPONENT.SERVICE_TYPE_LIST_PATH + $scope.serviceTypeList;\r
             }\r
-        }\r
+        };\r
 \r
         $scope.refreshServiceTypes = function (globalCustomerId) {\r
             DataService.setGlobalCustomerId(globalCustomerId);\r
 \r
             $scope.getServiceTypesList();\r
-        }\r
+        };\r
 \r
         $scope.subId = "";\r
         $scope.createSubscriberName = "";\r
@@ -138,7 +138,7 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
         $scope.subList = [];\r
         $scope.getAaiServiceModels = function (selectedServicetype, subName) {\r
             DataService.setGlobalCustomerId(selectedServicetype);\r
-            DataService.setServiceIdList($scope.serviceTypeList)\r
+            DataService.setServiceIdList($scope.serviceTypeList);\r
             DataService.setSubscriberName(subName);\r
 \r
             DataService.setSubscribers($scope.custSubList);\r
@@ -347,12 +347,12 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
                 callbackFunction: function (response) {\r
                 }\r
             });\r
-        }\r
+        };\r
         $scope.cancelCreateSIType = function () {\r
 \r
             window.location.href = COMPONENT.SERVICE_MODLES_INSTANCES_SUBSCRIBERS_PATH;\r
 \r
-        }\r
+        };\r
 \r
         $scope.fetchServices = function () {\r
             var serviceIdList = [];\r
@@ -395,12 +395,12 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
                 $scope.errorMsg = FIELD.ERROR.AAI_FETCHING_CUST_DATA + response.status;\r
                 $scope.errorDetails = response.data;\r
             });\r
-        }\r
+        };\r
 \r
         $scope.getPermitted = function (item) {\r
             return item.isPermitted || item[FIELD.ID.IS_PERMITTED];\r
 \r
-        }\r
+        };\r
 \r
 \r
         $scope.getSubDetails = function () {\r
@@ -482,7 +482,7 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
             $scope.enableCloseButton(false);\r
             $scope.resetProgress();\r
             $scope.setProgress(2); // Show "a little" progress\r
-        }\r
+        };\r
 \r
         function getRelatedInstanceGroupsByVnfId(genericVnf) {\r
             var model = vidService.getModel();\r
@@ -503,7 +503,7 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
                             )\r
                         }\r
                     }\r
-                })\r
+                });\r
             }\r
         }\r
 \r
@@ -516,7 +516,7 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
                 return resolveIfIsPermitted()\r
                     .then(function() {\r
                         return getAsdcModelByVersionId(modelVersionId);\r
-                    })\r
+                    });\r
             }\r
         }\r
 \r
@@ -689,7 +689,7 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
                     // the response is erroneous\r
                     console.log("aaiSubscriber getAsdcModel BAD RESPONSE");\r
                     errorCallback(response);\r
-                    return $q.reject()\r
+                    return $q.reject();\r
                 }\r
             }, errorCallback);\r
 \r
@@ -706,9 +706,9 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
                 if (item[FIELD.ID.SERVICE_INSTANCES] != null) {\r
                     item[FIELD.ID.SERVICE_INSTANCES][FIELD.ID.SERVICE_INSTANCE].forEach(function (service) {\r
                         if (service[FIELD.ID.SERVICE_INSTANCE_ID] === serviceId) {\r
-                            orchStatus = service['orchestration-status']\r
+                            orchStatus = service['orchestration-status'];\r
                         }\r
-                    })\r
+                    });\r
                 }\r
             });\r
             return orchStatus;\r
@@ -722,7 +722,7 @@ appDS2.controller("aaiSubscriberController", ["COMPONENT", "FIELD", "PARAMETER",
                 }, function (response) {\r
                     //TODO\r
                 });\r
-        }\r
+        };\r
 \r
         $scope.isConfigurationDataAvailiable = function (configuration) {\r
             $log.debug(configuration);\r