Skip to content

Commit cd2e0e8

Browse files
committed
More cleanup
1 parent 1b2cd96 commit cd2e0e8

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

Sources/AsyncAlgorithms/CombineLatest/AsyncCombineLatestManySequence.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ public struct AsyncCombineLatestManySequence<Element: Sendable, Failure: Error>:
6363
guard let element = try await self.storage.next() else {
6464
return nil
6565
}
66-
67-
// This force unwrap is safe since there must be a third element.
6866
return element
6967
}
7068
}

Sources/AsyncAlgorithms/CombineLatest/CombineLatestManyStateMachine.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ struct CombineLatestManyStateMachine<Element: Sendable, Failure: Error>: Sendabl
345345
let emptyUpstreamFinished = upstreams[baseIndex].element == nil
346346
upstreams[baseIndex].isFinished = true
347347

348-
// Implementing this for the two arities without variadic generics is a bit awkward sadly.
349348
if emptyUpstreamFinished {
350349
// All upstreams finished
351350
self.state = .finished

0 commit comments

Comments
 (0)