Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 28, 2023
1 parent a14a5a8 commit d52768c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/runtime/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ function createNitroApp(): NitroApp {
}
// Assign bound fetch to context
event.fetch = (req, init) =>
fetchWithEvent<Promise<Response>, NitroFetchRequest>(event, req, init, {
fetch: localFetch,
});
fetchWithEvent(event, req, init, { fetch: localFetch });
event.$fetch = ((req, init) =>
fetchWithEvent(event, req, init as RequestInit, {
fetch: $fetch,
Expand Down

0 comments on commit d52768c

Please sign in to comment.