Skip to content

Commit

Permalink
REF: Beautified code
Browse files Browse the repository at this point in the history
  • Loading branch information
royriojas committed Jul 30, 2015
1 parent 3d6279c commit 2ea617d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ var dispatchy = require( 'dispatchy' );

module.exports = {
create: function ( process ) {
var commands = [];
var commands = [ ];

return extend( dispatchy.create(), {
runCmds: function ( cmds ) {
var me = this;
cmds = cmds || [];
cmds = cmds || [ ];

cmds.forEach( function ( cmd ) {
me.run( cmd );
Expand All @@ -26,10 +26,7 @@ module.exports = {
env: process.env
} );

me.fire( 'command:start', {
cp: cp,
cmd: cmd
} );
me.fire( 'command:start', { cp: cp, cmd: cmd } );

cp.on( 'exit', function ( exitCode ) {
me.fire( 'command:exit', {
Expand Down

0 comments on commit 2ea617d

Please sign in to comment.