소스 검색

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,