Skip to content

Commit

Permalink
Merge branch 'feature/68-migration-to-null-safety' of https://github.…
Browse files Browse the repository at this point in the history
…com/ApplETS/Notre-Dame into feature/68-migration-to-null-safety
  • Loading branch information
XavierPaquet-Rapold committed Mar 13, 2024
2 parents 6e544f9 + 8a03d5a commit 18709ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/core/managers/course_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,7 @@ class CourseRepository {
Course course, Map<String, List<CourseReview>> reviews) {
// Todo: changer pour firstWhereOrNull après update de Collection
final review = reviews[course.session]?.where((element) =>
element.acronym == course.acronym && element.group == course.group);
return review?.isNotEmpty ?? false
? review?.first
: null;
element.acronym == course.acronym && element.group == course.group);
return review?.isNotEmpty ?? false ? review?.first : null;
}
}

0 comments on commit 18709ba

Please sign in to comment.