Skip to content

Commit

Permalink
chore: fix comment grammar (#12190)
Browse files Browse the repository at this point in the history
  • Loading branch information
huseeiin authored Jun 18, 2024
1 parent a624bfa commit b477940
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/kit/src/runtime/server/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b477940

Please sign in to comment.