From 1b92782484e199286d4ad72ccbffae1e1fd5686d Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 19 Feb 2019 14:38:13 +0100 Subject: [PATCH] lint compliance --- .jshintignore | 1 + www/debug/inner.js | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.jshintignore b/.jshintignore index e3735dc34..103edf2b9 100644 --- a/.jshintignore +++ b/.jshintignore @@ -26,3 +26,4 @@ www/common/media-tag-nacl.min.js customize/ +www/debug/chainpad.dist.js diff --git a/www/debug/inner.js b/www/debug/inner.js index 4610e0628..c47edf625 100644 --- a/www/debug/inner.js +++ b/www/debug/inner.js @@ -72,12 +72,12 @@ define([ 'digraph {' ]; var parseBlock = function (x) { - let c = x.getChildren(); - let label = x.hashOf.slice(0,8) + ' (' + x.parentCount + ' - ' + x.recvOrder + ')'; + var c = x.getChildren(); + var label = x.hashOf.slice(0,8) + ' (' + x.parentCount + ' - ' + x.recvOrder + ')'; var p = x.getParent(); if (p && p.getChildren().length === 1 && c.length === 1) { label = '...'; - let gc = c; + var gc = c; while (gc.length === 1) { c = gc; gc = c[0].getChildren(); @@ -101,7 +101,7 @@ define([ if (err) { return void cb(err); } data.forEach(function (m) { chainpad.message(m); - cb(null, makeGraph()) + cb(null, makeGraph()); }); }, {timeout: 180000}); }; @@ -182,7 +182,8 @@ define([ var content = h('div', [p, code]); getGraph(function (err, data) { if (err) { - return p.innerHTML = err; + p.innerHTML = err; + return; } p.innerHTML = Messages.debug_getGraph; code.innerHTML = data;