From c2b61a2cf2f370f1dcf50d38c79a6f17d8e19cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Wed, 6 Jun 2018 14:45:35 +0200 Subject: [PATCH] Remove unnecessary assignment of Commit#repo Repository#getCommit uses Commit.lookup and then manually assigns to Commit#repo even though Commit.lookup already does that. --- lib/repository.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/repository.js b/lib/repository.js index aa7c406e4..d3b6ade2d 100644 --- a/lib/repository.js +++ b/lib/repository.js @@ -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); }