We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8187ec commit e98e9efCopy full SHA for e98e9ef
packages/static-hosting/lib/handlers/csp-lambda/origin-response.ts
@@ -32,15 +32,9 @@ export const handler = async (
32
throw new Error("CSP_FILE or S3_BUCKET environment variable is missing");
33
}
34
35
- const params = {
36
- Bucket: S3_BUCKET,
37
- Key: CSP_OBJECT,
38
- };
+ const params = { Bucket: S3_BUCKET, Key: CSP_OBJECT };
39
40
- const s3Object = await s3.send(
41
- new GetObjectCommand(params)
42
-
43
- )
+ const s3Object = await s3.send(new GetObjectCommand(params));
44
45
if (!s3Object.Body) {
46
throw new Error("CSP file is empty or missing");
0 commit comments