From b47794069dbec0b1b7d5af75b42614f3b46b0811 Mon Sep 17 00:00:00 2001 From: huseeiin <122984423+huseeiin@users.noreply.github.com> Date: Tue, 18 Jun 2024 11:29:34 -0400 Subject: [PATCH] chore: fix comment grammar (#12190) --- packages/kit/src/runtime/server/fetch.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/kit/src/runtime/server/fetch.js b/packages/kit/src/runtime/server/fetch.js index 6d0ae7835f03..ff4a1fa527e2 100644 --- a/packages/kit/src/runtime/server/fetch.js +++ b/packages/kit/src/runtime/server/fetch.js @@ -123,7 +123,6 @@ export function create_fetch({ event, options, manifest, state, get_cookie_heade ); } - /** @type {Response} */ const response = await respond(request, options, manifest, { ...state, depth: state.depth + 1 @@ -153,7 +152,7 @@ export function create_fetch({ event, options, manifest, state, get_cookie_heade }; // Don't make this function `async`! Otherwise, the user has to `catch` promises they use for streaming responses or else - // it will be an unhandled rejection. Instead, we add a `.catch(() => {})` ourselves below to this from happening. + // it will be an unhandled rejection. Instead, we add a `.catch(() => {})` ourselves below to prevent this from happening. return (input, init) => { // See docs in fetch.js for why we need to do this const response = server_fetch(input, init);