Sfoglia il codice sorgente

Implement PR feedback

Marvin Polscheit 1 mese fa
parent
commit
a055c39f40
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Trio/Sources/Services/Network/TidepoolManager.swift

+ 1 - 1
Trio/Sources/Services/Network/TidepoolManager.swift

@@ -320,7 +320,7 @@ extension BaseTidepoolManager {
                                     .processTempBasalEvent(event, existingTempBasalEntries: existingTempBasalEntries)
                             )
                     case .bolus:
-                        guard let amount = event.amount else { break }
+                        guard let amount = event.amount else { return result }
                         let bolusDoseEntry = DoseEntry(
                             type: .bolus,
                             startDate: event.timestamp,