diff options
Diffstat (limited to 'deps/npm/lib/utils/git.js')
-rw-r--r-- | deps/npm/lib/utils/git.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/deps/npm/lib/utils/git.js b/deps/npm/lib/utils/git.js index 2d9da1086e1..dc021300ea0 100644 --- a/deps/npm/lib/utils/git.js +++ b/deps/npm/lib/utils/git.js @@ -32,14 +32,10 @@ function chainableExec () { return [execGit].concat(args) } -function whichGit (cb) { - return which(git, cb) -} - function whichAndExec (args, options, cb) { assert.equal(typeof cb, 'function', 'no callback provided') // check for git - whichGit(function (err) { + which(git, function (err) { if (err) { err.code = 'ENOGIT' return cb(err) |