Skip to content

Commit 595d256

Browse files
chore(lint): fix lint issues
1 parent e4b0567 commit 595d256

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/pages/text/[version]/[section]/[page]/[tab].ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ export const GET: APIRoute = async ({ params }) => {
7878
}
7979

8080
export async function getStaticPaths() {
81-
const paths: Array<{
81+
const paths: {
8282
params: { version: string; section: string; page: string; tab: string }
83-
}> = []
83+
}[] = []
8484

8585
for (const contentEntry of content) {
8686
if (contentEntry.version) {

src/pages/text/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import type { APIRoute } from 'astro'
22

33
export const prerender = false
44

5-
export const GET: APIRoute = async () => {
6-
return new Response(
5+
export const GET: APIRoute = async () => new Response(
76
JSON.stringify({
87
name: 'PatternFly Documentation API',
98
description: 'Machine-readable documentation API for LLM agents and MCP servers',
@@ -186,4 +185,3 @@ export const GET: APIRoute = async () => {
186185
},
187186
},
188187
)
189-
}

0 commit comments

Comments
 (0)