Skip to content

Commit 80e1a01

Browse files
committed
Replace then() with done(), so that error callback is not swalled by revwalk walker
1 parent bdf9c68 commit 80e1a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/revwalk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Revwalk.prototype.walk = function(oid, callback) {
3737
this.push(oid);
3838

3939
function walk() {
40-
revwalk.next().then(function(oid) {
40+
revwalk.next().done(function(oid) {
4141
if (!oid) {
4242
if (typeof callback === "function") {
4343
return callback();

0 commit comments

Comments
 (0)