Skip to content
Permalink
Browse files

Do not crash on empty history range or error

  • Loading branch information...
etienne-napoleone committed Jul 10, 2018
1 parent d653115 commit 5c485aebfb6aba8132103427f5d09970bc09692c
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 5c485ae

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