Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
patroza committed Nov 26, 2023
1 parent 3430378 commit 0b5d7fc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/infra/_src/services/simpledb/memdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ export function createContext<TKey extends string, EA, A extends DBRecord<TKey>>
const cr = { data: JSON.parse(sdb.data) as EA, version: sdb.version }
const r = yield* $(
decode(cr.data)
.flatMap((d) =>
eq(keys, d as unknown as V)
? Effect(d)
: Effect.fail("not equals")
)
.filterOrFail((d) => eq(keys, d as unknown as V), () => "not equals")
.exit
)
if (r.isSuccess()) {
Expand Down

0 comments on commit 0b5d7fc

Please sign in to comment.