Skip to content

Commit

Permalink
Merge pull request #32 from mbonig/fix/definition-deprecation
Browse files Browse the repository at this point in the history
fix: better deletion of the definition field
  • Loading branch information
mbonig committed Oct 20, 2023
2 parents 24ecf64 + e88bb83 commit db5ecb3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/StateMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ export class StateMachine extends aws_stepfunctions.StateMachine {
} else {
definitionString = JSON.stringify(mergedDefinition);
}
const propsMinusDefinition = {
...props,
definition: undefined,
};
const propsMinusDefinition = { ...props, definition: undefined };
delete propsMinusDefinition.definition;
super(scope, id, {
...propsMinusDefinition,
definitionBody: DefinitionBody.fromString(definitionString),
Expand Down

0 comments on commit db5ecb3

Please sign in to comment.