From 62e0ef553eb17c872099f25b3e139eecf04aba1d Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Mon, 9 Oct 2023 18:19:30 +0200 Subject: [PATCH] chore: prettier!!! --- src/lib/functions/form-submissions-handler.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/functions/form-submissions-handler.mjs b/src/lib/functions/form-submissions-handler.mjs index c3735dc6dfe..b31605e476c 100644 --- a/src/lib/functions/form-submissions-handler.mjs +++ b/src/lib/functions/form-submissions-handler.mjs @@ -29,7 +29,12 @@ const getFormHandler = function ({ functionsRegistry }) { export const createFormSubmissionHandler = function ({ functionsRegistry, siteUrl }) { return async function formSubmissionHandler(req, res, next) { - if (req.url.startsWith('/.netlify/') ||req.method !== 'POST' || (await functionsRegistry.getFunctionForURLPath(req.url, req.method))) return next() + if ( + req.url.startsWith('/.netlify/') || + req.method !== 'POST' || + (await functionsRegistry.getFunctionForURLPath(req.url, req.method)) + ) + return next() const fakeRequest = new Readable({ read() {