Daniel Snällfot 1 vuosi sitten
vanhempi
commit
bb9a7a58ed

+ 1 - 2
FreeAPS/Sources/Services/Network/Nightscout/NightscoutManager.swift

@@ -1146,8 +1146,7 @@ extension BaseNightscoutManager {
         let regex = try! NSRegularExpression(pattern: pattern)
 
         func convertToMmolL(_ value: String) -> String {
-            if let glucoseValue = Double(value.replacingOccurrences(of: "[^\\d.-]", with: "", options: .regularExpression))
-            {
+            if let glucoseValue = Double(value.replacingOccurrences(of: "[^\\d.-]", with: "", options: .regularExpression)) {
                 let mmolValue = Decimal(glucoseValue).asMmolL
                 return mmolValue.description
             }