Browse Source

Clean up workspace

dnzxy 2 years ago
parent
commit
e02285dfcf
1 changed files with 2 additions and 4 deletions
  1. 2 4
      FreeAPS/Sources/Modules/DataTable/DataTableDataFlow.swift

+ 2 - 4
FreeAPS/Sources/Modules/DataTable/DataTableDataFlow.swift

@@ -126,14 +126,12 @@ enum DataTable {
 
 
             switch type {
             switch type {
             case .carbs:
             case .carbs:
-                return numberFormater
-                    .string(from: amount as NSNumber)! + NSLocalizedString(" g", comment: "gram of carbs")
+                return numberFormater.string(from: amount as NSNumber)! + NSLocalizedString(" g", comment: "gram of carbs")
             case .fpus:
             case .fpus:
                 return numberFormater
                 return numberFormater
                     .string(from: amount as NSNumber)! + NSLocalizedString(" g", comment: "gram of carb equilvalents")
                     .string(from: amount as NSNumber)! + NSLocalizedString(" g", comment: "gram of carb equilvalents")
             case .bolus:
             case .bolus:
-                return numberFormater
-                    .string(from: amount as NSNumber)! + NSLocalizedString(" U", comment: "Insulin unit")
+                return numberFormater.string(from: amount as NSNumber)! + NSLocalizedString(" U", comment: "Insulin unit")
             case .tempBasal:
             case .tempBasal:
                 return numberFormater
                 return numberFormater
                     .string(from: amount as NSNumber)! + NSLocalizedString(" U/hr", comment: "Unit insulin per hour")
                     .string(from: amount as NSNumber)! + NSLocalizedString(" U/hr", comment: "Unit insulin per hour")