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:
-rw-r--r--lib/init.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/init.js b/lib/init.js
index 1c64d9760..174d61822 100644
--- a/lib/init.js
+++ b/lib/init.js
@@ -99,7 +99,7 @@ function init_ (data, folder, cb) {
, function (er, r) {
if (er) return cb(er)
if (r !== "none") {
- data.repository = (data.repository || {}).url = r
+ (data.repository = (data.repository || {})).url = r
}
cb()
}