Skip to content

Commit 2e10ffa

Browse files
committed
chore: rm comments
1 parent 4abaa05 commit 2e10ffa

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • packages/opencode/src/installation

packages/opencode/src/installation/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ export namespace Installation {
167167
export async function latest(installMethod?: Method) {
168168
const detectedMethod = installMethod || (await method())
169169

170-
// Use brew formula API for homebrew core formula
171170
if (detectedMethod === "brew") {
172171
const formula = await getBrewFormula()
173172
if (formula === "opencode") {
@@ -180,7 +179,6 @@ export namespace Installation {
180179
}
181180
}
182181

183-
// Use npm registry for npm/bun/pnpm
184182
if (detectedMethod === "npm" || detectedMethod === "bun" || detectedMethod === "pnpm") {
185183
const registry = await iife(async () => {
186184
const r = (await $`npm config get registry`.quiet().nothrow().text()).trim()
@@ -196,7 +194,6 @@ export namespace Installation {
196194
.then((data: any) => data.version)
197195
}
198196

199-
// Use GitHub releases for everything else (curl, yarn, brew tap, unknown)
200197
return fetch("https://api.github.com/repos/sst/opencode/releases/latest")
201198
.then((res) => {
202199
if (!res.ok) throw new Error(res.statusText)

0 commit comments

Comments
 (0)