Skip to content
Permalink
Browse files

Merge pull request #2 from tomochain/hotfix/results

Ensure `results` is always an array
  • Loading branch information...
etienne-napoleone committed Jul 10, 2018
2 parents d653115 + 5c485ae commit 21793a8811b77a5c76c242a262f8804f9d81a8b5
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/node.js
@@ -586,7 +586,7 @@ Node.prototype.getHistory = function (range)
var self = this;

var history = [];
var interv = {};
var interv = [];

console.time('=H=', 'his', 'Got history in');

@@ -607,7 +607,7 @@ Node.prototype.getHistory = function (range)
if (err) {
console.error('his', 'history fetch failed:', err);

results = false;
results = [];
}
else
{

0 comments on commit 21793a8

Please sign in to comment.
You can’t perform that action at this time.