Skip to content

Commit ff81b57

Browse files
committed
Rename a private function
1 parent cf719cc commit ff81b57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lambda.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ declare namespace handler {
1313
type APIGatewayEventHandler = (event: handler.APIGatewayEvent, context?: handler.LambdaContext) => Promise<handler.LambdaResponse>
1414
};
1515

16-
const eventWithMultiValueHeaders = (event: handler.APIGatewayEvent): boolean => {
16+
const eventHasMultiValueHeaders = (event: handler.APIGatewayEvent): boolean => {
1717
return event.multiValueHeaders !== null && typeof event.multiValueHeaders === 'object';
1818
}
1919

@@ -27,7 +27,7 @@ const processRequest = (app: Promise<RequestListener>): handler.APIGatewayEventH
2727
try {
2828
const reqOptions = eventToRequestOptions(event, ctx);
2929
const mockResponse = await appHandler(reqOptions);
30-
return inProcessResponseToLambdaResponse(mockResponse, eventWithMultiValueHeaders(event));
30+
return inProcessResponseToLambdaResponse(mockResponse, eventHasMultiValueHeaders(event));
3131
} catch (e) {
3232
console.error(e);
3333
return errorResponse();

0 commit comments

Comments
 (0)