Add a semicolon at the end of this statement 03/94403/2
authoranushadasari <danush10@in.ibm.com>
Wed, 28 Aug 2019 06:56:19 +0000 (12:26 +0530)
committerIttay Stern <ittay.stern@att.com>
Thu, 29 Aug 2019 11:59:40 +0000 (11:59 +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-597
Change-Id: If9e0bba384cd1345e4674e5e06085ba8feb78e39
Signed-off-by: anushadasari <danush10@in.ibm.com>
vid-app-common/src/main/webapp/app/vid/scripts/controller/change-management.controller.js

index 10a3e67..d58bf49 100644 (file)
 
         var fuseMsoAndSchedulerTaks = function() {
             if (vm.changeManagements && vm.pendingChangeManagements) {
-                var requestIdToVnfName = {}
+                var requestIdToVnfName = {};
                 vm.pendingChangeManagements.forEach(function(schedulerItem) {
                     if (schedulerItem.msoRequestId && schedulerItem.vnfName) {
                         requestIdToVnfName[schedulerItem.msoRequestId] = schedulerItem.vnfName;
                     }
-                })
+                });
                 $log.debug("requestIdToVnfName", requestIdToVnfName);
 
                 vm.changeManagements = vm.changeManagements.map(function(msoItem) {
                     msoItem['vnfNameFromScheduler'] = requestIdToVnfName[msoItem.requestId];
                     return msoItem;
-                })
+                });
             }
         };
 
         };
 
         vm.searchChanges = function() {
-            console.log("function for searching changes: " + vm.searchChangesTerm)
+            console.log("function for searching changes: " + vm.searchChangesTerm);
         };
 
 
         vm.openFailedModal = function($event, jobInfo) {
             vm.openManualTasksPopup($event, jobInfo,
                 'app/vid/scripts/modals/failed-change-management/failed-change-management.html',
-                "This is the result of the failed change management modal.")
+                "This is the result of the failed change management modal.");
         };
 
         vm.openInProgressModal = function($event, jobInfo) {
             vm.openManualTasksPopup($event, jobInfo,
                 'app/vid/scripts/modals/in-progress-modal-management/in-progress-change-management.html',
-                "This is the result of the in progress change management modal.")
+                "This is the result of the in progress change management modal.");
         };
 
         vm.openAlertModal = function($event, jobInfo) {
             vm.openManualTasksPopup($event, jobInfo,
                 'app/vid/scripts/modals/alert-change-management/alert-change-management.html',
-                "This is the result of the alert change management modal.")
+                "This is the result of the alert change management modal.");
         };
 
         vm.openBasicAlertModal = function(jobInfo) {
                 vm.currModal.close();
                 vm.currModal = null;
             }
-        }
+        };
 
 
         vm.init();