Explorar el Código

Implement PR feedback

Marvin Polscheit hace 1 mes
padre
commit
a055c39f40
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,