瀏覽代碼

chore(dev-hub) Fix comments

Aditya Arora 2 月之前
父節點
當前提交
b5b190d353
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      apps/developer-hub/scripts/generate-docs.ts

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

@@ -11,7 +11,7 @@ export async function generateDocs() {
     per: "operation",
     name: (output, document) => {
       // Extract product name from the OpenAPI document info
-      const productName = getProductName(document.info.title || "unknown");
+      const productName = getProductName(document.info.title);
 
       if (output.type === "operation") {
         const operation =
@@ -36,7 +36,7 @@ export async function generateDocs() {
   });
 }
 
-function getProductName(title: string): string {
+function getProductName(title: string) {
   // Match the title to a product name
   const titleLower = title.toLowerCase();
   for (const [name] of Object.entries(products)) {