Skip to content

Commit 31efdbc

Browse files
committed
fix: remove unreachable ternary in installDependencies
Apply Greptile suggestion - the Installation.isLocal() check on line 169 returns early, making the ternary unreachable. Simplify to just use Installation.BASE_VERSION.
1 parent 3899c2d commit 31efdbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opencode/src/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export namespace Config {
180180

181181
// Use BASE_VERSION for @opencode-ai/plugin since it's published by upstream without our -N suffix
182182
await BunProc.run(
183-
["add", "@opencode-ai/plugin@" + (Installation.isLocal() ? "latest" : Installation.BASE_VERSION), "--exact"],
183+
["add", "@opencode-ai/plugin@" + Installation.BASE_VERSION, "--exact"],
184184
{
185185
cwd: dir,
186186
},

0 commit comments

Comments
 (0)