From 95a934f4850a416331e603273231988b30ff5d87 Mon Sep 17 00:00:00 2001 From: Zhuoyun Wei Date: Tue, 21 May 2024 04:51:16 -0700 Subject: [PATCH] lint: remove extra semicolons --- src/server/aws-lambda/src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/aws-lambda/src/index.js b/src/server/aws-lambda/src/index.js index 4aaa02c11..13c68c9f2 100644 --- a/src/server/aws-lambda/src/index.js +++ b/src/server/aws-lambda/src/index.js @@ -6,7 +6,7 @@ https://docs.aws.amazon.com/lambda/latest/dg/urls-invocation.html */ exports.handler = async function (event, context) { - process.env.VERCEL_URL = event.requestContext.domainName; + process.env.VERCEL_URL = event.requestContext.domainName process.env.TWIKOO_IP_HEADERS = JSON.stringify([ 'headers.requestContext.http.sourceIp' ]) @@ -22,9 +22,9 @@ exports.handler = async function (event, context) { } try { if (event.isBase64Encoded) { - request.body = JSON.parse(Buffer.from(event.body, 'base64').toString('utf-8')); + request.body = JSON.parse(Buffer.from(event.body, 'base64').toString('utf-8')) } else { - request.body = JSON.parse(event.body); + request.body = JSON.parse(event.body) } } catch (e) {} const response = {