Skip to content

Commit b59e173

Browse files
committed
chore: clean up comments
1 parent 51f9cfe commit b59e173

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

server/api/registry/docs/[...pkg].get.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export default defineCachedEventHandler(
2525
throw createError({ statusCode: 404, message: 'No latest version found' })
2626
}
2727

28-
// Extract exports from the already-fetched packument to avoid redundant fetch
2928
const versionData = packument.versions?.[version]
3029
const exports = versionData?.exports as Record<string, unknown> | undefined
3130

server/utils/docs/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export async function getDocNodes(
6161
return { version: 1, nodes: allNodes }
6262
} catch {
6363
// Silent failure - all docgen errors are graceful degradation
64-
// This feature should never wake up a maintainer
64+
// In future should maybe consider debug mode / struct logging of some kind
6565
return { version: 1, nodes: [] }
6666
}
6767
}

0 commit comments

Comments
 (0)