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:
authorMartin Cooper <mfncooper@gmail.com>2012-03-31 02:39:31 +0400
committerisaacs <i@izs.me>2012-04-07 01:35:13 +0400
commit16c02cb363dc918d827205e27bf5a282ea4e5b5c (patch)
tree6a4946e831c200f72c0d226247033a66cab0f75a /lib/init.js
parent12d6ed6aac5672fe017a1150ecaaadad1ada403a (diff)
Don't clobber the repo object with a string.
Diffstat (limited to 'lib/init.js')
-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()
}