mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 03:56:55 +03:00
refactor(core): remove duplicate config failure (#45625)
This commit is contained in:
committed by
GitHub
Unverified
parent
991a0d05b5
commit
7fe8bf5b24
@@ -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" }))
|
||||
|
||||
Reference in New Issue
Block a user