Swift cleanup: simplify "Task.init {}" to "Task {}"

Signed-off-by: Bryan Montz <bryanmontz@me.com>
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
Bryan Montz
2023-07-16 08:00:52 -05:00
committed by William Casarin
parent ecd8b64b8b
commit 3d6909bf62
4 changed files with 4 additions and 4 deletions

View File

@@ -494,7 +494,7 @@ func preload_events(state: DamusState, events: [NostrEvent]) {
return
}
Task.init {
Task {
for plan in plans {
await preload_event(plan: plan, state: state)
}