remove duplicate filtering

This commit is contained in:
Elias Csomor 2022-11-21 11:02:57 +01:00
parent 62fb3869e6
commit 3f02bedd1d
1 changed files with 0 additions and 2 deletions

View File

@ -90,9 +90,7 @@ public class JsonTaskList implements TaskList {
List<Task> temptasks = taskMap.values().stream().
filter(task -> { return task.getCropId() == cropId;}).toList();
for (Task task : temptasks ) {
if (task.getCropId() == cropId) {
taskMap.remove(task.getId());
}
}
writeTaskListToFile();
}