mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-30 07:32:00 +00:00
refactor(core): remove duplicate config failure (#45625)
This commit is contained in:
parent
991a0d05b5
commit
7fe8bf5b24
1 changed files with 0 additions and 2 deletions
|
|
@ -81,8 +81,6 @@ export const testLayer = (initial: Entry[] = []) =>
|
|||
Effect.gen(function* () {
|
||||
const current = yield* Ref.get(entries)
|
||||
const index = current.findIndex((entry) => entry.type === "document" && entry.path !== undefined)
|
||||
if (index === -1)
|
||||
return yield* Effect.fail(new UpdateError({ message: "No editable config document found" }))
|
||||
const entry = current[index]
|
||||
if (!entry || entry.type !== "document")
|
||||
return yield* Effect.fail(new UpdateError({ message: "No editable config document found" }))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue