Skip to content

Commit 3a112fc

Browse files
committed
Change arrow function to function
1 parent 8354fa6 commit 3a112fc

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

app/pages/doc.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type { Route } from "./+types/doc";
1414

1515
export { ErrorBoundary } from "~/components/doc-error-boundary";
1616

17-
export let loader = async ({ request, params }: Route.LoaderArgs) => {
17+
export async function loader({ request, params }: Route.LoaderArgs) {
1818
let url = new URL(request.url);
1919
let splat = params["*"] ?? "";
2020

@@ -30,7 +30,6 @@ export let loader = async ({ request, params }: Route.LoaderArgs) => {
3030
if (!doc) {
3131
throw new Response("Not Found", { status: 404 });
3232
}
33-
3433
return {
3534
doc,
3635
githubPath: githubPath,
@@ -40,7 +39,7 @@ export let loader = async ({ request, params }: Route.LoaderArgs) => {
4039
} catch (_) {
4140
throw new Response("Not Found", { status: 404 });
4241
}
43-
};
42+
}
4443

4544
export function headers({ parentHeaders }: HeadersArgs) {
4645
parentHeaders.set("Cache-Control", CACHE_CONTROL.doc);

0 commit comments

Comments
 (0)