Open nysander opened 4 days ago
I think the issue here is that by removing the return
, the closure type is being changed to implicitly return a Task
instead. I'm not sure why that crashes rather than being a compilation error though - might be a bug in the Swift compiler?
In any case, a workaround for now might be to add an explicit -> Void
to the return type? Or if that doesn't work, adding:
// swiftformat:disable:next redundantReturn
Above the return
line should solve it until I can find a fix.
my config: