Skip to content

Commit 2ecd0d7

Browse files
committed
Linting fix
1 parent bab344f commit 2ecd0d7

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ import { CSP } from "../types/csp";
4646
import { PathRemapFunction } from "./path-remap";
4747
import { RequestFunction, ResponseFunction } from "./csp";
4848

49-
5049
export interface StaticHostingProps {
5150
/**
5251
* Domain name for the stack. Combined with the subDomainName it is used as
@@ -633,14 +632,10 @@ export class StaticHosting extends Construct {
633632
? {
634633
accessControlAllowCredentials:
635634
props.corsConfig.accessControlAllowCredentials ?? false,
636-
accessControlAllowHeaders:
637-
props.corsConfig.accessControlAllowHeaders ?? ["*"],
638-
accessControlAllowMethods:
639-
props.corsConfig.accessControlAllowMethods ?? [
640-
"GET",
641-
"HEAD",
642-
"OPTIONS",
643-
],
635+
accessControlAllowHeaders: props.corsConfig
636+
.accessControlAllowHeaders ?? ["*"],
637+
accessControlAllowMethods: props.corsConfig
638+
.accessControlAllowMethods ?? ["GET", "HEAD", "OPTIONS"],
644639
accessControlAllowOrigins:
645640
props.corsConfig.accessControlAllowOrigins,
646641
originOverride: props.corsConfig.originOverride ?? true,

0 commit comments

Comments
 (0)