Skip to content

Commit dcb17c6

Browse files
chore: generate
1 parent dd68b85 commit dcb17c6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

packages/opencode/src/util/instance-state.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ export namespace InstanceState {
2222
const cache = yield* ScopedCache.make<string, A, E, R>({
2323
capacity: Number.POSITIVE_INFINITY,
2424
lookup: (key) =>
25-
Effect.acquireRelease(input.lookup(key), (value) => (input.release ? input.release(value, key) : Effect.void)),
25+
Effect.acquireRelease(input.lookup(key), (value) =>
26+
input.release ? input.release(value, key) : Effect.void,
27+
),
2628
})
2729

2830
const task: Task = (key) => ScopedCache.invalidate(cache, key)
@@ -39,8 +41,7 @@ export namespace InstanceState {
3941

4042
export const has = <A, E, R>(self: State<A, E, R>) => ScopedCache.has(self.cache, Instance.directory)
4143

42-
export const invalidate = <A, E, R>(self: State<A, E, R>) =>
43-
ScopedCache.invalidate(self.cache, Instance.directory)
44+
export const invalidate = <A, E, R>(self: State<A, E, R>) => ScopedCache.invalidate(self.cache, Instance.directory)
4445

4546
export const dispose = (key: string) =>
4647
Effect.all(

0 commit comments

Comments
 (0)