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
diff options
context:
space:
mode:
Diffstat (limited to 'lib/install.js')
-rw-r--r--lib/install.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/install.js b/lib/install.js
index 350b54c7a..d2e1e6e42 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -399,8 +399,7 @@ Installer.prototype.computeLinked = function (cb) {
function safeJSONparse (data) {
try {
return JSON.parse(data)
- }
- catch (ex) {
+ } catch (ex) {
return
}
}
@@ -455,8 +454,7 @@ Installer.prototype.executeActions = function (cb) {
chain(steps, function (er) {
if (!er || self.rollback) {
rimraf(staging, function () { cb(er) })
- }
- else {
+ } else {
cb(er)
}
})