@@ -23,7 +23,7 @@ module.exports = {
2323 const filePath = `${ dir } /${ splitHandler [ 0 ] } .js` ;
2424 const handlerName = `${ splitHandler [ 1 ] } ` ;
2525
26- return { handler : handlerName , filePath } ;
26+ return { handler : handlerName , filePath} ;
2727 } ,
2828
2929 buildStepWorkFlow ( ) {
@@ -75,9 +75,9 @@ module.exports = {
7575 } else if ( steps [ index ] . waitState ) {
7676 //type: Wait
7777 return resolve ( this . _run ( steps [ index ] . f ( result ) , result , index ) ) ;
78+ } else {
79+ return resolve ( this . _run ( steps [ index ] . f ( ) , result , index ) ) ;
7880 }
79-
80- return resolve ( this . _run ( steps [ index ] . f ( ) , result , index ) ) ;
8181 } ,
8282
8383 _runChoice ( typeChoice , result , resolve , index ) {
@@ -86,7 +86,7 @@ module.exports = {
8686 //look through choice and find appropriate
8787 _ . forEach ( typeChoice . choice , choice => {
8888 //check if result from previous function has of value which described in Choice
89- if ( ! _ . isEmpty ( result [ choice . variable ] ) ) {
89+ if ( ! _ . isNil ( result [ choice . variable ] ) ) {
9090 //check condition
9191 const isConditionTrue = choice . checkFunction ( result [ choice . variable ] , choice . compareWithValue ) ;
9292 if ( isConditionTrue ) {
0 commit comments