From e9a64c5022068c7c31cfe5c0d3ab47bd72039fb7 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Wed, 1 Feb 2017 12:26:23 -0500 Subject: [PATCH] fix jshint issue --- awx/ui/client/src/job-results/job-results.controller.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/awx/ui/client/src/job-results/job-results.controller.js b/awx/ui/client/src/job-results/job-results.controller.js index c8b198900d..2af29d5b05 100644 --- a/awx/ui/client/src/job-results/job-results.controller.js +++ b/awx/ui/client/src/job-results/job-results.controller.js @@ -580,11 +580,11 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy }); }; - var bufferInterval = undefined; + var bufferInterval; // Processing of job_events messages from the websocket toDestroy.push($scope.$on(`ws-job_events-${$scope.job.id}`, function(e, data) { - if (bufferInterval === undefined) { + if (!bufferInterval) { bufferInterval = setInterval(function(){ processBuffer(); }, 500); @@ -631,7 +631,7 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy data.status === "error" || data.status === "canceled") { clearInterval(elapsedInterval); - if (bufferInterval !== undefined) { + if (bufferInterval) { clearInterval(bufferInterval); } // When the fob is finished retrieve the job data to @@ -665,7 +665,7 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy }); $scope.events = {}; clearInterval(elapsedInterval); - if (bufferInterval !== undefined) { + if (bufferInterval) { clearInterval(bufferInterval); } toDestroy.forEach(closureFunc => closureFunc());