Skip to content

Commit

Permalink
Fix bug in AbstractIterator#_seek (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphtheninja authored and vweevers committed Jul 20, 2018
1 parent aeabe99 commit a6c733b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions abstract-iterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ AbstractIterator.prototype.seek = function (target) {
this._seek(target)
}

AbstractIterator.prototype._seek = function (callback) {
process.nextTick(callback)
}
AbstractIterator.prototype._seek = function (target) {}

AbstractIterator.prototype.end = function (callback) {
if (typeof callback !== 'function') {
Expand Down

0 comments on commit a6c733b

Please sign in to comment.