Przeglądaj źródła

chore: rm comments

Aiden Cline 1 miesiąc temu
rodzic
commit
2e10ffac6b
1 zmienionych plików z 0 dodań i 3 usunięć
  1. 0 3
      packages/opencode/src/installation/index.ts

+ 0 - 3
packages/opencode/src/installation/index.ts

@@ -167,7 +167,6 @@ export namespace Installation {
   export async function latest(installMethod?: Method) {
     const detectedMethod = installMethod || (await method())
 
-    // Use brew formula API for homebrew core formula
     if (detectedMethod === "brew") {
       const formula = await getBrewFormula()
       if (formula === "opencode") {
@@ -180,7 +179,6 @@ export namespace Installation {
       }
     }
 
-    // Use npm registry for npm/bun/pnpm
     if (detectedMethod === "npm" || detectedMethod === "bun" || detectedMethod === "pnpm") {
       const registry = await iife(async () => {
         const r = (await $`npm config get registry`.quiet().nothrow().text()).trim()
@@ -196,7 +194,6 @@ export namespace Installation {
         .then((data: any) => data.version)
     }
 
-    // Use GitHub releases for everything else (curl, yarn, brew tap, unknown)
     return fetch("https://api.github.com/repos/sst/opencode/releases/latest")
       .then((res) => {
         if (!res.ok) throw new Error(res.statusText)