fix fallback code for loading conf.json

This commit is contained in:
Jeff Williams 2013-04-23 11:24:18 -07:00
parent ac857da48d
commit 692f9c9290

View File

@ -170,10 +170,7 @@ function main() {
env.opts = jsdoc.opts.args.parse(env.args);
confPath = env.opts.configure || path.join(__dirname, 'conf.json');
try {
fs.statSync(confPath);
}
catch (e) {
if ( !fs.statSync(confPath).isFile() ) {
confPath = path.join(__dirname, 'conf.json.EXAMPLE');
}