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:
authorKat Marchán <kzm@sykosomatic.org>2017-05-25 04:27:34 +0300
committerRebecca Turner <me@re-becca.org>2017-05-26 04:55:29 +0300
commit5529a238153e570b7119f3f73b9b86c25b376167 (patch)
tree6538ac00ab408db18effcc3224ff2a5cb0485319 /lib
parentad5a441288fb6b510d8c1995732e422f2604169e (diff)
standard: fix some loose ends
Diffstat (limited to 'lib')
-rw-r--r--lib/install.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/install.js b/lib/install.js
index e7546cdac..80ffb0aa8 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -249,8 +249,9 @@ Installer.prototype.run = function (_cb) {
if (!this.dryrun) {
installSteps.push(
[this.newTracker(log, 'runTopLevelLifecycles', 2)],
- [this, this.runPreinstallTopLevelLifecycles])
- }
+ [this, this.runPreinstallTopLevelLifecycles]
+ )
+ }
installSteps.push(
[this.newTracker(log, 'loadCurrentTree', 4)],
[this, this.loadCurrentTree],
@@ -551,8 +552,6 @@ Installer.prototype.runPreinstallTopLevelLifecycles = function (cb) {
if (this.failing) return cb()
if (!this.topLevelLifecycles) return cb()
log.silly('install', 'runPreinstallTopLevelLifecycles')
- var steps = []
- var trackLifecycle = this.progress.runTopLevelLifecycles
readPackageJson(path.join(this.where, 'package.json'), log, false, (err, data) => {
if (err) return cb()