Skip to content

Commit

Permalink
Update packages/aws-cdk-lib/core/lib/annotations.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizencc authored Dec 18, 2023
1 parent 81b1861 commit 27d41c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/core/lib/annotations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class Annotations {
private addMessage(level: string, message: string) {
const isNew = !this.scope.node.metadata.find((x) => x.data === message);
if (isNew) {
let normalizedMessage = typeof message === "string" ? message : JSON.stringify(message);
let normalizedMessage = typeof message === 'string' ? message : JSON.stringify(message);
this.scope.node.addMetadata(level, normalizedMessage, { stackTrace: this.stackTraces });
}
}
Expand Down

0 comments on commit 27d41c5

Please sign in to comment.