Skip to content

Commit 742996f

Browse files
dodok8claude
andcommitted
Remove unnecessary async from callbacks
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a10aa9d commit 742996f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/solidstart/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export function fedifyMiddleware<TContextData>(
6060
onRequest: async (event: FetchEvent) => {
6161
const response = await federation.fetch(event.request, {
6262
contextData: await createContextData(event),
63-
onNotFound: async () => new Response("Not Found", { status: 404 }),
64-
onNotAcceptable: async () =>
63+
onNotFound: () => new Response("Not Found", { status: 404 }),
64+
onNotAcceptable: () =>
6565
new Response("Not Acceptable", {
6666
status: 406,
6767
headers: { "Content-Type": "text/plain", Vary: "Accept" },

0 commit comments

Comments
 (0)