File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,14 @@ module.exports = {
1616 . then ( ( serverlessFileParam ) => {
1717 this . serverless . variables . populateObject ( serverlessFileParam ) . then ( ( parsedObject ) => {
1818 this . serverless . service . stepFunctions = { } ;
19- try {
20- this . serverless . service . stepFunctions . stateMachines
19+ this . serverless . service . stepFunctions . stateMachines
2120 = parsedObject . stepFunctions
2221 && parsedObject . stepFunctions . stateMachines
2322 ? parsedObject . stepFunctions . stateMachines : { } ;
24- this . serverless . service . stepFunctions . activities
23+ this . serverless . service . stepFunctions . activities
2524 = parsedObject . stepFunctions
2625 && parsedObject . stepFunctions . activities
2726 ? parsedObject . stepFunctions . activities : [ ] ;
28- } catch ( e ) {
29- throw new this . serverless . classes
30- . Error ( 'stateMachine or activity not found in this Service' ) ;
31- }
3227
3328 if ( ! this . serverless . pluginManager . cliOptions . stage ) {
3429 this . serverless . pluginManager . cliOptions . stage = this . options . stage
You can’t perform that action at this time.
0 commit comments