remove asserts.

This commit is contained in:
Christopher Jeffrey 2016-04-16 20:22:54 -07:00
parent d9761fbe16
commit a484d290d2
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);