Skip to content

Commit

Permalink
docs(example): switch to more modern iterable method
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryConrad committed Oct 20, 2024
1 parent daafed5 commit b538083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/hevy_smolov_jr/lib/steps/exercise_selection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ final Capsule<Future<List<Exercise>>> _curatedExercisesCapsule =
final exercises = await use(exercisesCapsule);
return curatedExerciseNames
.map((name) => exercises.where((e) => e.title == name).firstOrNull)
.whereType<Exercise>()
.nonNulls
.toList();
});

Expand Down

0 comments on commit b538083

Please sign in to comment.