Просмотр исходного кода

Xcoude AutoFix podAge

(cherry picked from commit a9672274353975c88af3b631349d577a4dd5c160)
Jan Dittmer 4 лет назад
Родитель
Сommit
16b149693d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      FreeAPS/Sources/Services/Network/NightscoutManager.swift

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

@@ -240,7 +240,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
     
         let uploadedPodAge = storage.retrieve(OpenAPS.Nightscout.uploadedPodAge, as: [NigtscoutTreatment].self) ?? []
         if let podAge = storage.retrieve(OpenAPS.Monitor.podAge, as: Date.self),
-           (uploadedPodAge.last?.createdAt == nil || podAge != uploadedPodAge.last!.createdAt!)
+           uploadedPodAge.last?.createdAt == nil || podAge != uploadedPodAge.last!.createdAt!
         {
             let siteTreatment = NigtscoutTreatment(
                 duration: nil,