Skip to content

Commit b85fb40

Browse files
stephencelisactions-user
authored andcommitted
Run swift-format
1 parent 23155a0 commit b85fb40

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

Sources/ComposableArchitecture/Effects/Concurrency.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,5 +206,6 @@ import SwiftUI
206206
}
207207
.eraseToEffect()
208208
}
209-
} #endif
209+
}
210+
#endif
210211
#endif

Sources/ComposableArchitecture/ViewStore.swift

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -454,27 +454,27 @@ private struct HashableWrapper<Value>: Hashable {
454454
.first(where: { !predicate($0) })
455455
} else {
456456
let cancellable = Box<AnyCancellable?>(wrappedValue: nil)
457-
try? await withTaskCancellationHandler(
458-
handler: { cancellable.wrappedValue?.cancel() },
459-
operation: {
460-
try Task.checkCancellation()
461-
try await withUnsafeThrowingContinuation {
462-
(continuation: UnsafeContinuation<Void, Error>) in
463-
guard !Task.isCancelled else {
464-
continuation.resume(throwing: CancellationError())
465-
return
466-
}
467-
cancellable.wrappedValue = self.publisher
468-
.filter { !predicate($0) }
469-
.prefix(1)
470-
.sink { _ in
471-
continuation.resume()
472-
_ = cancellable
473-
}
474-
}
475-
}
476-
)
477-
}
457+
try? await withTaskCancellationHandler(
458+
handler: { cancellable.wrappedValue?.cancel() },
459+
operation: {
460+
try Task.checkCancellation()
461+
try await withUnsafeThrowingContinuation {
462+
(continuation: UnsafeContinuation<Void, Error>) in
463+
guard !Task.isCancelled else {
464+
continuation.resume(throwing: CancellationError())
465+
return
466+
}
467+
cancellable.wrappedValue = self.publisher
468+
.filter { !predicate($0) }
469+
.prefix(1)
470+
.sink { _ in
471+
continuation.resume()
472+
_ = cancellable
473+
}
474+
}
475+
}
476+
)
477+
}
478478
}
479479
}
480480

0 commit comments

Comments
 (0)