Skip to content

Commit a5c87ed

Browse files
committed
desambiguate compactMap by providing return type
1 parent 2ee8c16 commit a5c87ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Realtime/RealtimeClientV2.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public final class RealtimeClientV2: Sendable {
7474
///
7575
/// You can also use ``onHeartbeat(_:)`` for a closure based method.
7676
public var heartbeat: AsyncStream<HeartbeatStatus> {
77-
heartbeatSubject.values.compactMap { $0 }.eraseToStream()
77+
heartbeatSubject.values.compactMap { value -> HeartbeatStatus? in value }.eraseToStream()
7878
}
7979

8080
/// Listen for connection status changes.

0 commit comments

Comments
 (0)