From 725f4879ebfdb5578ba9eafc2a4461e8aa8337ac Mon Sep 17 00:00:00 2001 From: Steven Guggenheimer Date: Thu, 29 Jul 2021 14:43:53 -0500 Subject: [PATCH] Remove trailing spaces from previous change --- packages/@aws-cdk/aws-cloudfront/lib/web-distribution.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/aws-cloudfront/lib/web-distribution.ts b/packages/@aws-cdk/aws-cloudfront/lib/web-distribution.ts index 26ddf899522cf..f9427c03dd452 100644 --- a/packages/@aws-cdk/aws-cloudfront/lib/web-distribution.ts +++ b/packages/@aws-cdk/aws-cloudfront/lib/web-distribution.ts @@ -1154,8 +1154,8 @@ export class CloudFrontWebDistribution extends cdk.Resource implements IDistribu const originShieldRegion = originConfig.originShieldRegion ?? originConfig.customOriginSource?.originShieldRegion ?? originConfig.s3OriginSource?.originShieldRegion; - return originShieldRegion - ? { enabled: true, originShieldRegion } + return originShieldRegion + ? { enabled: true, originShieldRegion } : undefined; } }