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