Skip to content

Commit

Permalink
Fixed undefined in output
Browse files Browse the repository at this point in the history
  • Loading branch information
meve committed Oct 7, 2024
1 parent e8dc7bb commit 941c3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function printSecurityDiff(
const diff = fullDiff(oldTemplate, newTemplate.template, changeSet);

// must output the stack name if there are differences, even if quiet
if (!quiet || !diff.isEmpty) {
if (stackName && (!quiet || !diff.isEmpty)) {
stream.write(format('Stack %s\n', chalk.bold(stackName)));
}

Expand Down

0 comments on commit 941c3d1

Please sign in to comment.