Skip to content

Commit 8aed294

Browse files
committed
fix: remove dead heart rate unit fallback
1 parent af3f2ff commit 8aed294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation Lab/Health/Services/HealthKitService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ actor HealthKitService {
138138
do {
139139
let samples = try await descriptor.result(for: healthStore)
140140
if let sample = samples.first {
141-
let unit = HKUnit(from: "count/min") ?? HKUnit.count().unitDivided(by: .minute())
141+
let unit = HKUnit.count().unitDivided(by: .minute())
142142
return sample.quantity.doubleValue(for: unit)
143143
}
144144
} catch {

0 commit comments

Comments
 (0)