Skip to content

Commit b5b190d

Browse files
committed
chore(dev-hub) Fix comments
1 parent 8653abd commit b5b190d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/developer-hub/scripts/generate-docs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export async function generateDocs() {
1111
per: "operation",
1212
name: (output, document) => {
1313
// Extract product name from the OpenAPI document info
14-
const productName = getProductName(document.info.title || "unknown");
14+
const productName = getProductName(document.info.title);
1515

1616
if (output.type === "operation") {
1717
const operation =
@@ -36,7 +36,7 @@ export async function generateDocs() {
3636
});
3737
}
3838

39-
function getProductName(title: string): string {
39+
function getProductName(title: string) {
4040
// Match the title to a product name
4141
const titleLower = title.toLowerCase();
4242
for (const [name] of Object.entries(products)) {

0 commit comments

Comments
 (0)