aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-12-05 10:21:18 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2014-12-05 10:21:18 +0100
commit64b2bb79dffe2a0f37203297652ec930db528b40 (patch)
tree4ad619d6123c1a8ce8b2e53e5ac10fc7b40adcfc
parent793804c6b5df3e0bf16e1c5d446d269b0ee0671f (diff)
Fix jslint errors and conventions.
Change-Id: I4d03de094f73bcd85b8673af4faa24742f70fdf7
-rw-r--r--app/dashboard/static/js/linaro-boots-id-1.1.3.js19
1 files changed, 6 insertions, 13 deletions
diff --git a/app/dashboard/static/js/linaro-boots-id-1.1.3.js b/app/dashboard/static/js/linaro-boots-id-1.1.3.js
index d15fcc6..874ce3d 100644
--- a/app/dashboard/static/js/linaro-boots-id-1.1.3.js
+++ b/app/dashboard/static/js/linaro-boots-id-1.1.3.js
@@ -29,7 +29,6 @@ function populateOtherBootTable(data) {
bootLog,
bootLogHtml,
allRows = '',
- row = '',
col0,
col1,
col2,
@@ -58,13 +57,12 @@ function populateOtherBootTable(data) {
bootLogHtml = localReport.boot_log_html;
defconfigFull = localReport.defconfig_full;
- 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 + '-' +
@@ -202,7 +200,6 @@ function populatePage(data) {
displ = '',
job,
kernel,
- defconfig,
arch,
defconfigFull,
localLabName,
@@ -220,7 +217,6 @@ function populatePage(data) {
job = localData.job;
kernel = localData.kernel;
- defconfig = localData.defconfig;
defconfigFull = localData.defconfig_full;
arch = localData.arch;
localLabName = localData.lab_name;
@@ -281,13 +277,11 @@ function populatePage(data) {
$('#dd-board-endianness').empty().append(nonAvail);
}
- if (fileServerUrl !== null &&
- typeof(fileServerUrl) !== 'undefined') {
+ if (fileServerUrl !== null && fileServerUrl !== undefined) {
fileServer = fileServerUrl;
}
- if (fileServerResource !== null &&
- typeof(fileServerResource) !== 'undefined') {
+ if (fileServerResource !== null && fileServerResource !== undefined) {
pathUrl = fileServerResource;
} else {
pathUrl = job + '/' + kernel + '/' +
@@ -424,7 +418,7 @@ function createBootBisectTable(data) {
unknownCommitCell,
goodCommitCell,
bootStatus,
- tableRows,
+ tableRows = '',
tooltipLink,
tooltipTitle,
gitURLs,
@@ -435,7 +429,7 @@ function createBootBisectTable(data) {
badCommit = localResult.bad_commit;
goodCommit = localResult.good_commit;
- for (i; i < localLen; i++) {
+ for (i; i < localLen; i = i + 1) {
bisectData = localData[i];
bootStatus = bisectData.boot_status;
gitDescribeVal = bisectData.git_describe;
@@ -529,7 +523,6 @@ function getBisectData(data) {
var localData = data.result[0],
status = localData.status,
- docId,
bisectAjaxCall,
errorReason;