Skip to content

Commit e0a43ab

Browse files
committed
use variable rather than function definiton syntax
1 parent d806d9d commit e0a43ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/event-handler/src/rest/converters.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import type { APIGatewayProxyEvent } from 'aws-lambda';
22

3-
function createBody(body: string | null, isBase64Encoded: boolean) {
3+
const createBody = (body: string | null, isBase64Encoded: boolean) => {
44
if (body === null) return null;
55

66
if (!isBase64Encoded) {
77
return body;
88
}
99
return Buffer.from(body, 'base64').toString('utf8');
10-
}
10+
};
1111

1212
export function proxyEventToWebRequest(event: APIGatewayProxyEvent) {
1313
const { httpMethod, path, domainName } = event.requestContext;

0 commit comments

Comments
 (0)