diff --git a/packages/aws-cdk-lib/core/lib/annotations.ts b/packages/aws-cdk-lib/core/lib/annotations.ts index 33176e43075ab..2d5d75dab3ef0 100644 --- a/packages/aws-cdk-lib/core/lib/annotations.ts +++ b/packages/aws-cdk-lib/core/lib/annotations.ts @@ -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 }); } }