From 79fecd6b036ba1a02cfc5e6574d1974850ddedf9 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 20 Jan 2017 23:39:43 -0500 Subject: [PATCH] fix some linter complaints --- src/app/settings/settingsDomainsController.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/app/settings/settingsDomainsController.js b/src/app/settings/settingsDomainsController.js index 4167f04e14..7bdaa1e9f2 100644 --- a/src/app/settings/settingsDomainsController.js +++ b/src/app/settings/settingsDomainsController.js @@ -8,8 +8,9 @@ $scope.equivalentDomains = []; apiService.settings.getDomains({}, function (response) { + var i; if (response.EquivalentDomains) { - for (var i = 0; i < response.EquivalentDomains.length; i++) { + for (i = 0; i < response.EquivalentDomains.length; i++) { $scope.equivalentDomains.push(response.EquivalentDomains[i].join(', ')); } } @@ -27,16 +28,16 @@ $scope.toggleExclude = function (globalDomain) { globalDomain.excluded = !globalDomain.excluded; - } + }; $scope.customize = function (globalDomain) { globalDomain.excluded = true; $scope.equivalentDomains.push(globalDomain.domains); - } + }; $scope.delete = function (i) { $scope.equivalentDomains.splice(i, 1); - } + }; $scope.addEdit = function (i) { var addEditModal = $uibModal.open({ @@ -62,7 +63,7 @@ $scope.equivalentDomains.push(returnObj.domains); } }); - } + }; $scope.save = function () { var request = {