Skip to content

Commit

Permalink
Run format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamJHall committed Jul 31, 2023
1 parent ad2df53 commit 9ff54c2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/static-hosting/lib/static-hosting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class StaticHosting extends Construct {
: undefined;

if (publisherGroup) {
this.bucket.grantReadWrite(publisherGroup);
this.bucket.grantReadWrite(publisherGroup);

new CfnOutput(this, "PublisherGroupName", {
description: "PublisherGroup",
Expand Down Expand Up @@ -351,7 +351,8 @@ export class StaticHosting extends Construct {
},
});

const cfnDistribution = this.distribution.node.defaultChild as CfnDistribution;
const cfnDistribution = this.distribution.node
.defaultChild as CfnDistribution;
// In the current version of CDK there's no nice way to do this...
// Instead just override the CloudFormation property directly
cfnDistribution.addOverride(
Expand All @@ -372,7 +373,8 @@ export class StaticHosting extends Construct {
* the cache behaviors
*/
if (props.responseHeadersPolicies) {
const cfnDistribution = this.distribution.node.defaultChild as CfnDistribution;
const cfnDistribution = this.distribution.node
.defaultChild as CfnDistribution;

/**
* If we prepend custom origin configs,
Expand Down

0 comments on commit 9ff54c2

Please sign in to comment.