Skip to content

Commit 3dd85dc

Browse files
tomarrawolfenrain
andauthored
Update lib/src/matchers.dart
Co-authored-by: Jochum van der Ploeg <[email protected]>
1 parent 0081a09 commit 3dd85dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/matchers.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Matcher isRoute<T extends Object?>({
2727
}) {
2828
// Remove once `named` argument is removed.
2929
if (whereName == null && named != null) {
30-
// Nullable parameter so assignment is OK
30+
// Reassigning it to the parameter to make the code flow nicer.
3131
// ignore: parameter_assignments
3232
whereName = equals(named);
3333
}

0 commit comments

Comments
 (0)