From b76f172079e665cfb7f9d249a76975675028260b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20S=C3=A4ume?= Date: Fri, 17 May 2024 09:18:40 +0200 Subject: [PATCH] NOTICKET: Fix MedicationDao ReadAll --- .../java/de/hitec/nhplus/medication/database/MedicationDao.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/de/hitec/nhplus/medication/database/MedicationDao.java b/src/main/java/de/hitec/nhplus/medication/database/MedicationDao.java index 7397f8b..e53349c 100644 --- a/src/main/java/de/hitec/nhplus/medication/database/MedicationDao.java +++ b/src/main/java/de/hitec/nhplus/medication/database/MedicationDao.java @@ -106,8 +106,6 @@ public class MedicationDao implements Dao { result.getInt(6) ); medications.add(medication); - lastMedicationId = currentMedicationId; - continue; } List ingredients = ingredientMap.computeIfAbsent(currentMedicationId, k -> new ArrayList<>()); ingredients.add(new Ingredient(result.getString(7)));