Skip to content

Commit ef99196

Browse files
committed
Linting fixes
1 parent 0647831 commit ef99196

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/static-hosting/lib/static-hosting.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ export interface StaticHostingProps {
9494
*
9595
* @default undefined - no CORS policy will be applied
9696
*/
97-
corsConfig?: Partial<ResponseHeadersCorsBehavior> & Pick<ResponseHeadersCorsBehavior, "accessControlAllowOrigins">;
97+
corsConfig?: Partial<ResponseHeadersCorsBehavior> &
98+
Pick<ResponseHeadersCorsBehavior, "accessControlAllowOrigins">;
9899

99100
/**
100101
* Whether the site should be indexable by search engines.
@@ -626,8 +627,7 @@ export class StaticHosting extends Construct {
626627

627628
// Create CORS behavior config if corsConfig is specified
628629
const corsBehavior: ResponseHeadersCorsBehavior | undefined =
629-
props.corsConfig &&
630-
props.corsConfig?.accessControlAllowOrigins.length > 0
630+
props.corsConfig && props.corsConfig?.accessControlAllowOrigins.length > 0
631631
? {
632632
accessControlAllowCredentials: false,
633633
accessControlAllowHeaders: ["*"],

0 commit comments

Comments
 (0)