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:
committed by
William Casarin
parent
ecd8b64b8b
commit
3d6909bf62
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user