Procházet zdrojové kódy

chore(dev-hub) Fix comments

Aditya Arora před 2 měsíci
rodič
revize
b5b190d353
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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)) {