Skip to content

Commit 8ae4c5c

Browse files
committed
Comment out debugging line
1 parent 25ddbf0 commit 8ae4c5c

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

OddJava/src/main/java/com/oddball/challenges/BadDayService.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public List<BadDayStreak> getBadDayStreaks() {
4343
for (TreeSet<BadDay> userBadDays : allBadDays.values()) {
4444
List<List<BadDay>> userStreaks = userBadDays.stream()
4545
.gather(BadDayStreakGatherer.INSTANCE)
46-
.peek(streak ->
47-
System.out.println("Found streak:\n" + streak.stream().map(o -> " " + o).collect(joining("\n"))))
46+
// .peek(streak ->
47+
// System.out.println("Found streak:\n" + streak.stream().map(o -> " " + o).collect(joining("\n"))))
4848
.toList();
4949
allBadDayStreaks.addAll(userStreaks);
5050
}
@@ -70,9 +70,8 @@ private Map<Long, TreeSet<BadDay>> getBadDaysByUser(LocalDate from, LocalDate to
7070
List<BadDay> badStressDays = stressRepository.getBadStressDays(from, to);
7171

7272
var allBadDays = Stream.concat(badMoodDays.stream(), badStressDays.stream());
73-
return allBadDays.collect(groupingBy(
74-
BadDay::userId,
75-
toCollection(() -> new TreeSet<>(comparing(BadDay::date)))));
73+
return allBadDays.collect(
74+
groupingBy(BadDay::userId, toCollection(() -> new TreeSet<>(comparing(BadDay::date)))));
7675
}
7776

7877
private static LocalDate getStartOfWeek(LocalDate date) {

0 commit comments

Comments
 (0)