Sessions Integration Feature
Nucleic-Session: FC94353F-9F0D-4BCC-AD7C-0FB14E38C2E5 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -1195,8 +1195,7 @@ extension DashboardSnapshot {
|
|||||||
/// usage taken from the first Mac that reports it (a user's Macs share one account, so their
|
/// usage taken from the first Mac that reports it (a user's Macs share one account, so their
|
||||||
/// windows match — summing would double-count), and provider status feeds unioned by provider
|
/// windows match — summing would double-count), and provider status feeds unioned by provider
|
||||||
/// (provider status is global, not per-Mac).
|
/// (provider status is global, not per-Mac).
|
||||||
static func merged(_ snapshots: some Collection<DashboardSnapshot>) -> DashboardSnapshot {
|
static func merged(_ snaps: [DashboardSnapshot]) -> DashboardSnapshot {
|
||||||
let snaps = Array(snapshots)
|
|
||||||
guard snaps.count != 1 else { return snaps[0] }
|
guard snaps.count != 1 else { return snaps[0] }
|
||||||
guard !snaps.isEmpty else { return .empty }
|
guard !snaps.isEmpty else { return .empty }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user