Skip to content

Commit

Permalink
Fix codecov issues
Browse files Browse the repository at this point in the history
  • Loading branch information
leepoeaik committed Mar 25, 2024
1 parent 6a47a65 commit ece91b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/seedu/address/ui/StudentCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ public StudentCard(Student student, int displayedIndex) {
subject.setText(student.getSubject().value);
remark.setText(student.getRemark().value);
student.getLessons().stream()
.sorted(Comparator.comparing(Lesson::getLessonValue))
.filter(lesson -> lesson.getLessonStatus() == 0)
.sorted(Comparator.comparing(Lesson::getLessonValue)).filter(lesson -> lesson.getLessonStatus() == 0)
.forEach(lesson -> lessons.getChildren().add(new Label(lesson.toString())));

Check warning on line 64 in src/main/java/seedu/address/ui/StudentCard.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/ui/StudentCard.java#L64

Added line #L64 was not covered by tests
}
}

0 comments on commit ece91b3

Please sign in to comment.