Skip to content

Commit 9a51f4f

Browse files
committed
Gardening
1 parent 213c6ab commit 9a51f4f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/Atoms/Atom/TaskAtom.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public protocol TaskAtom: AsyncAtom where Produced == Task<Success, Never> {
5454
public extension TaskAtom {
5555
var producer: AtomProducer<Produced> {
5656
AtomProducer { context in
57-
Task { [value] in
57+
Task {
5858
await context.transaction(value)
5959
}
6060
} manageValue: { task, context in
@@ -64,7 +64,7 @@ public extension TaskAtom {
6464

6565
var refreshProducer: AtomRefreshProducer<Produced> {
6666
AtomRefreshProducer { context in
67-
Task { [value] in
67+
Task {
6868
await context.transaction(value)
6969
}
7070
} refreshValue: { task, context in

Sources/Atoms/Atom/ThrowingTaskAtom.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public protocol ThrowingTaskAtom: AsyncAtom where Produced == Task<Success, Erro
5858
public extension ThrowingTaskAtom {
5959
var producer: AtomProducer<Produced> {
6060
AtomProducer { context in
61-
Task { [value] in
61+
Task {
6262
try await context.transaction(value)
6363
}
6464
} manageValue: { task, context in
@@ -68,7 +68,7 @@ public extension ThrowingTaskAtom {
6868

6969
var refreshProducer: AtomRefreshProducer<Produced> {
7070
AtomRefreshProducer { context in
71-
Task { [value] in
71+
Task {
7272
try await context.transaction(value)
7373
}
7474
} refreshValue: { task, context in

0 commit comments

Comments
 (0)