diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2014-12-05 10:30:07 +0100 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2014-12-05 10:30:07 +0100 |
commit | 9f7cef4beedf320d4519b7ef26c83f935c704ddf (patch) | |
tree | 3d12dc7815a4c38ab9b4a1c4e3349cf16d35036e | |
parent | 3613a7192d1eac49de9cd972c4330a1e5a733d5a (diff) |
Fix jslint errors.
Change-Id: Ib8073fd93cda7591c43661f0903d98ccd525c01d
-rw-r--r-- | app/dashboard/static/js/linaro-boots-job-kernel-defconfig-0.0.4.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/dashboard/static/js/linaro-boots-job-kernel-defconfig-0.0.4.js b/app/dashboard/static/js/linaro-boots-job-kernel-defconfig-0.0.4.js index f99cc14..e59eadc 100644 --- a/app/dashboard/static/js/linaro-boots-job-kernel-defconfig-0.0.4.js +++ b/app/dashboard/static/js/linaro-boots-job-kernel-defconfig-0.0.4.js @@ -29,11 +29,10 @@ function populateBootPage(data) { fileServerResource, pathUrl = '', fileServerUri = null, - uriPath = '', - colSpan = 6; + uriPath = ''; if (dataLen > 0) { - for (i; i < dataLen; i++) { + for (i; i < dataLen; i = i + 1) { labName = localData[i].lab_name; createdOn = new Date(localData[i].created_on.$date); resultDescription = localData[i].boot_result_description; @@ -43,13 +42,12 @@ function populateBootPage(data) { bootLog = localData[i].boot_log; bootLogHtml = localData[i].boot_log_html; - if (fileServerUrl !== null && - typeof(fileServerUrl) !== 'undefined') { + if (fileServerUrl !== null && fileServerUrl !== undefined) { fileServer = fileServerUrl; } if (fileServerResource !== null && - typeof(fileServerResource) !== 'undefined') { + fileServerResource !== undefined) { pathUrl = fileServerResource; } else { pathUrl = jobName + '/' + kernelName + '/' + arch + '-' + |