Skip to content

Commit

Permalink
Fixes minor style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tkambler authored and indexzero committed Jul 24, 2015
1 parent 49144be commit 30a76e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ var getOptions = cli.getOptions = function (file) {
if (path.extname(file) === '.json') {
jsonConfig = path.isAbsolute(file) ? shush(file) : shush(absFile);
if (!Array.isArray(jsonConfig)) jsonConfig = [jsonConfig];
jsonConfig.forEach(function(jconf, jk) {
jsonConfig.forEach(function (jconf, jk) {
jconf = Object.keys(jconf).reduce(function (acc, curr, i, arr) {
if (!!~configKeys.indexOf(curr) || curr === 'script') { acc[curr] = jconf[curr]; }
return acc;
Expand Down Expand Up @@ -278,7 +278,7 @@ var getOptions = cli.getOptions = function (file) {
options.spawnWith = { cwd: options.workingDir };

if (jsonConfig.length) {
return jsonConfig.map(function(jconf) {
return jsonConfig.map(function (jconf) {
return objectAssign(clone(options), jconf);
});
} else {
Expand Down Expand Up @@ -308,7 +308,7 @@ app.cmd(/start (.+)/, cli.startDaemon = function () {
var file = app.argv._[1],
options = getOptions(file);

options.forEach(function(o) {
options.forEach(function (o) {
forever.log.info('Forever processing file: ' + o.script.grey);
tryStart(o.script, o, function () {
forever.startDaemon(o.script, o);
Expand Down

0 comments on commit 30a76e8

Please sign in to comment.