Skip to content

Commit f85262c

Browse files
committed
Merge pull request hmalphettes#5 from dweinstein/fix-this-to-self-on-fetch-page-err
this => self for error in fetch page
2 parents 572e1a0 + c90220d commit f85262c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/readable-search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ ReadableHits.prototype._fetchNextPage = function() {//size) {
5151
self.hits = [];
5252
self._next = false;
5353
self.emit('error', e);
54-
return this.push(null);
54+
return self.push(null);
5555
}
5656
self.total = resp.hits.total;
5757
self._hits = resp.hits.hits;

0 commit comments

Comments
 (0)