Browse Source

chore: rm comments

Aiden Cline 1 month ago
parent
commit
2e10ffac6b
1 changed files with 0 additions and 3 deletions
  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) {
   export async function latest(installMethod?: Method) {
     const detectedMethod = installMethod || (await method())
     const detectedMethod = installMethod || (await method())
 
 
-    // Use brew formula API for homebrew core formula
     if (detectedMethod === "brew") {
     if (detectedMethod === "brew") {
       const formula = await getBrewFormula()
       const formula = await getBrewFormula()
       if (formula === "opencode") {
       if (formula === "opencode") {
@@ -180,7 +179,6 @@ export namespace Installation {
       }
       }
     }
     }
 
 
-    // Use npm registry for npm/bun/pnpm
     if (detectedMethod === "npm" || detectedMethod === "bun" || detectedMethod === "pnpm") {
     if (detectedMethod === "npm" || detectedMethod === "bun" || detectedMethod === "pnpm") {
       const registry = await iife(async () => {
       const registry = await iife(async () => {
         const r = (await $`npm config get registry`.quiet().nothrow().text()).trim()
         const r = (await $`npm config get registry`.quiet().nothrow().text()).trim()
@@ -196,7 +194,6 @@ export namespace Installation {
         .then((data: any) => data.version)
         .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")
     return fetch("https://api.github.com/repos/sst/opencode/releases/latest")
       .then((res) => {
       .then((res) => {
         if (!res.ok) throw new Error(res.statusText)
         if (!res.ok) throw new Error(res.statusText)