remove asserts.
This commit is contained in:
parent
d9761fbe16
commit
a484d290d2
@ -946,8 +946,6 @@ Chain.prototype._reorganize = function _reorganize(entry, block, callback) {
|
|||||||
})(tip);
|
})(tip);
|
||||||
|
|
||||||
function finish() {
|
function finish() {
|
||||||
assert(entries.length > 0);
|
|
||||||
|
|
||||||
utils.forEachSerial(entries, function(entry, next) {
|
utils.forEachSerial(entries, function(entry, next) {
|
||||||
self.disconnect(entry, next);
|
self.disconnect(entry, next);
|
||||||
}, callback);
|
}, callback);
|
||||||
@ -976,8 +974,6 @@ Chain.prototype._reorganize = function _reorganize(entry, block, callback) {
|
|||||||
|
|
||||||
function finish() {
|
function finish() {
|
||||||
entries = entries.slice().reverse();
|
entries = entries.slice().reverse();
|
||||||
assert(entries.length > 0);
|
|
||||||
|
|
||||||
utils.forEachSerial(entries, function(entry, next) {
|
utils.forEachSerial(entries, function(entry, next) {
|
||||||
self.connect(entry, next);
|
self.connect(entry, next);
|
||||||
}, callback);
|
}, callback);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user