diff options
author | isaacs <i@izs.me> | 2010-05-03 07:56:55 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-05-03 07:56:55 +0400 |
commit | 7c1a2328043476ee3ee66f2396b7b1e99bf930b7 (patch) | |
tree | 55ef1874aa2458e7ca132913582f7b070e4137fe /lib | |
parent | 12087998c4046520ea7c4ba213353987b6353181 (diff) |
Default the config object to a {} if getConfig doesn't return anything
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils/ini.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/ini.js b/lib/utils/ini.js index 40b0bfdb6..68ca1871d 100644 --- a/lib/utils/ini.js +++ b/lib/utils/ini.js @@ -35,7 +35,7 @@ var sys = require("sys") , registry : "https://registry.npmjs.org/" } , configfile = path.join(process.env.HOME, '.npmrc') - , config = getConfig() + , config = getConfig() || {} , privateKey exports.config = config |