Parcourir la source

Implement PR feedback

Marvin Polscheit il y a 1 mois
Parent
commit
a055c39f40
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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,