diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md b/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md index 1dd8bb7efa508..3b96aa8237b05 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md @@ -408,11 +408,7 @@ const project = new codebuild.Project(this, 'Project', { }, }), }); -const buildconfig = project.enableBatchBuilds(); - -if (buildconfig == null) { - throw new Error('Batch builds not enabled'); -} +project.enableBatchBuilds(); const task = new tasks.CodeBuildStartBuildBatch(this, 'buildBatchTask', { project,