refactor(core): remove duplicate config failure (#45625)

This commit is contained in:
Kit Langton 2026-08-27 18:52:36 -04:00 committed by GitHub
parent 991a0d05b5
commit 7fe8bf5b24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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" }))