Skip to content

Commit d31e7c1

Browse files
committed
Fixing actually broken code found by es6
revWalk.repo only has a getter and you don't need to set it because it's already handled at the libgit2 level.
1 parent 6b5ee5b commit d31e7c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/repository.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,7 @@ Repository.prototype.deleteTagByName = function(name) {
428428
* @return {RevWalk}
429429
*/
430430
Repository.prototype.createRevWalk = function() {
431-
var revWalk = Revwalk.create(this);
432-
revWalk.repo = this;
433-
return revWalk;
431+
return Revwalk.create(this);
434432
};
435433

436434
/**

0 commit comments

Comments
 (0)