Преглед на файлове

Compiler formatting fixes

Deniz Cengiz преди 1 година
родител
ревизия
c6a67527a0
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      FreeAPS/Sources/Modules/BasalProfileEditor/BasalProfileEditorStateModel.swift

+ 4 - 4
FreeAPS/Sources/Modules/BasalProfileEditor/BasalProfileEditorStateModel.swift

@@ -120,15 +120,15 @@ extension BasalProfileEditor {
 
         func availableTimeIndices(_ itemIndex: Int) -> [Int] {
             // avoid index out of range issues
-            guard itemIndex >= 0 && itemIndex < items.count else {
+            guard itemIndex >= 0, itemIndex < items.count else {
                 return []
             }
-            
+
             let usedIndicesByOtherItems = items
                 .enumerated()
                 .filter { $0.offset != itemIndex }
-                .map { $0.element.timeIndex }
-            
+                .map(\.element.timeIndex)
+
             return (0 ..< timeValues.count).filter { !usedIndicesByOtherItems.contains($0) }
         }
     }