Skip to content

Commit

Permalink
Merge pull request #1508 from tniessen/repository-remove-unnecessary-…
Browse files Browse the repository at this point in the history
…assignment

Remove unnecessary assignment of Commit#repo
  • Loading branch information
tbranyen committed Jan 19, 2020
2 parents 8ad3e37 + c2b61a2 commit b111960
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/repository.js
Expand Up @@ -1143,8 +1143,6 @@ Repository.prototype.getCommit = function(oid, callback) {
var repository = this;

return Commit.lookup(repository, oid).then(function(commit) {
commit.repo = repository;

if (typeof callback === "function") {
callback(null, commit);
}
Expand Down

0 comments on commit b111960

Please sign in to comment.