浏览代码

Implement PR feedback

Marvin Polscheit 1 月之前
父节点
当前提交
a055c39f40
共有 1 个文件被更改,包括 1 次插入1 次删除
  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,