Semicolon at the end of the Statement and Remove trailing whitespaces at the end... 97/94797/4
authoranushadasari <danush10@in.ibm.com>
Tue, 3 Sep 2019 06:53:24 +0000 (12:23 +0530)
committerIttay Stern <ittay.stern@att.com>
Tue, 10 Sep 2019 13:13:02 +0000 (13:13 +0000)
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-606
Change-Id: Ic6daf9162504a2296a7e2cf48f08e60cabe14b21
Signed-off-by: anushadasari <danush10@in.ibm.com>
vid-app-common/src/main/webapp/app/vid/scripts/controller/statusDialogController.js

index 4562a9d..47fa269 100755 (executable)
@@ -87,7 +87,7 @@ var statusDialogController = function(COMPONENT, FIELD, $scope, $http, $timeout,
 \r
        $scope.userParameterChanged = function(id) {\r
                StatusService.updateUserParameterList(id, $scope.userProvidedControl);\r
-       }\r
+       };\r
 \r
     /*$scope.submit = function() {\r
 \r
@@ -140,9 +140,7 @@ var statusDialogController = function(COMPONENT, FIELD, $scope, $http, $timeout,
                $scope.isSubmitEnabled = false;\r
                $scope.isCancelEnabled = false;\r
                \r
-       }\r
-\r
-\r
+       };\r
     \r
     $scope.handleInitialResponse = function(response) {\r
                try {\r
@@ -165,7 +163,7 @@ var statusDialogController = function(COMPONENT, FIELD, $scope, $http, $timeout,
                } catch (error) {\r
                        $scope.showContentError(error);\r
                }\r
-       }\r
+       };\r
     \r
        /* $scope.setVnfProvStatus = function(vnfId, targetProvStatus) {\r
                \r
@@ -193,7 +191,7 @@ var statusDialogController = function(COMPONENT, FIELD, $scope, $http, $timeout,
                $scope.isDialogVisible = false;\r
                $scope.popup.isVisible = false;\r
                runCallback(false);\r
-       }\r
+       };\r
 \r
        var runCallback = function(response) {\r
                if (angular.isFunction(callbackFunction)) {\r
@@ -203,7 +201,7 @@ var statusDialogController = function(COMPONENT, FIELD, $scope, $http, $timeout,
                                instanceId : response.instanceId\r
                        });\r
                }\r
-       }\r
+       };\r
    \r
        var showSuccess = function(summary, details) {\r
                var message = summary;\r
@@ -213,7 +211,7 @@ var statusDialogController = function(COMPONENT, FIELD, $scope, $http, $timeout,
                $scope.isSpinnerVisible = false;\r
                $scope.isSuccessVisible = true;\r
                $scope.success = message;\r
-           }\r
+           };\r
                \r
     var showError = function(summary, details) {\r
        var message = summary;\r
@@ -223,8 +221,8 @@ var statusDialogController = function(COMPONENT, FIELD, $scope, $http, $timeout,
        $scope.isSpinnerVisible = false;\r
        $scope.isErrorVisible = true;\r
        $scope.error = message;\r
-    }\r
-}\r
+    };\r
+};\r
 \r
 appDS2.controller("statusDialogController", [ "COMPONENT", "FIELD", "$scope", "$http", "$timeout",\r
        "$log", "MsoService", "StatusService", "DataService", "PropertyService", "UtilityService",\r