Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2017-07-04 00:41:32 +0300
committerKat Marchán <kzm@sykosomatic.org>2017-07-06 01:11:01 +0300
commit74924de5941cffb5cae41ddc7ff217a42de47dd1 (patch)
tree1d0cf4624e2203c7e226ada44e25af716f3270b0 /lib
parent1e56f4935464837d218537e5e939c0e13c7daced (diff)
prune: Remove extraneous code
Diffstat (limited to 'lib')
-rw-r--r--lib/prune.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/prune.js b/lib/prune.js
index 5d910490c..4ac813957 100644
--- a/lib/prune.js
+++ b/lib/prune.js
@@ -41,7 +41,6 @@ Pruner.prototype.loadAllDepsIntoIdealTree = function (cb) {
function shouldPrune (child) {
if (isExtraneous(child)) return true
if (!excludeDev) return false
- var childName = moduleName(child)
return isOnlyDev(child)
}
function getModuleName (child) {