From 8295b68405b107f36f9161ab07f50521374d998f Mon Sep 17 00:00:00 2001 From: Ismael Martinez Ramos Date: Fri, 21 Jun 2024 15:23:22 +0100 Subject: [PATCH] removing the block of non scaning stages when invoking aspects --- packages/aws-cdk-lib/core/lib/private/synthesis.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/aws-cdk-lib/core/lib/private/synthesis.ts b/packages/aws-cdk-lib/core/lib/private/synthesis.ts index 3526991880735..dba05f569334e 100644 --- a/packages/aws-cdk-lib/core/lib/private/synthesis.ts +++ b/packages/aws-cdk-lib/core/lib/private/synthesis.ts @@ -247,9 +247,7 @@ function invokeAspects(root: IConstruct) { } for (const child of construct.node.children) { - if (!Stage.isStage(child)) { - recurse(child, allAspectsHere); - } + recurse(child, allAspectsHere); } } }