Permalink
Browse files

Don't clobber the repo object with a string.

  • Loading branch information...
1 parent 12d6ed6 commit 16c02cb363dc918d827205e27bf5a282ea4e5b5c @mfncooper mfncooper committed with isaacs Mar 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/init.js
View
2 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()
}

0 comments on commit 16c02cb

Please sign in to comment.