Skip to content

Commit e98e9ef

Browse files
committed
DO-1852: release static-hosting@2.7.1 - lint
1 parent b8187ec commit e98e9ef

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

packages/static-hosting/lib/handlers/csp-lambda/origin-response.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,9 @@ export const handler = async (
3232
throw new Error("CSP_FILE or S3_BUCKET environment variable is missing");
3333
}
3434

35-
const params = {
36-
Bucket: S3_BUCKET,
37-
Key: CSP_OBJECT,
38-
};
35+
const params = { Bucket: S3_BUCKET, Key: CSP_OBJECT };
3936

40-
const s3Object = await s3.send(
41-
new GetObjectCommand(params)
42-
43-
)
37+
const s3Object = await s3.send(new GetObjectCommand(params));
4438

4539
if (!s3Object.Body) {
4640
throw new Error("CSP file is empty or missing");

0 commit comments

Comments
 (0)