Skip to content

Commit 6bc1a8d

Browse files
committed
Return on noMoreCommits
1 parent 992e677 commit 6bc1a8d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/commit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ var _Commit = function(obj) {
116116

117117
if (noMoreCommits) {
118118
event.emit('end', null, commits);
119+
return;
119120
}
120121

121122
event.emit('commit', null, commit);

0 commit comments

Comments
 (0)