Skip to content

Commit

Permalink
cleanup and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
thlorenz committed Jul 10, 2013
1 parent 094a304 commit c69ea84
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions index.js
Expand Up @@ -126,6 +126,7 @@ var go = module.exports = function (opts, cb) {
fs.exists(configFile, function (exists) {
if (!exists) {
if (defaultConfig) {
// config didn't exist but we were supplied a default config
tasks = tasks.concat(
[ copyDefaultConfig.bind(null, defaultConfig)
, emit('copied-default', defaultConfig)
Expand All @@ -134,18 +135,20 @@ var go = module.exports = function (opts, cb) {
]
);
} else {
// config didn't exist and we were not given a default config
tasks = tasks.concat(
[ notfound
, emit('notfound-config')
]
);
}
} else {
tasks = tasks.concat(
[ loadConfig
, emit('loaded-config')
]
);
// config existed
tasks = tasks.concat(
[ loadConfig
, emit('loaded-config')
]
);
}

tasks = tasks.concat(
Expand Down

0 comments on commit c69ea84

Please sign in to comment.