Skip to content

Commit

Permalink
[minor] Style compliance for #403. Fixes #403.
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Apr 21, 2013
1 parent 477082b commit b641a4a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,10 @@ var getOptions = cli.getOptions = function (file) {
options[key] = app.config.get(key);
});

options.watchIgnore = options.watchIgnore || [ ];
options.watchIgnorePatterns = (options.watchIgnore instanceof Array) ? options.watchIgnore : [ options.watchIgnore ];
options.watchIgnore = options.watchIgnore || [];
options.watchIgnorePatterns = !Array.isArray(options.watchIgnore)
? options.watchIgnore
: [options.watchIgnore];

if (!options.minUptime) {
forever.log.warn('--minUptime not set. Defaulting to: 1000ms');
Expand Down

0 comments on commit b641a4a

Please sign in to comment.