Skip to content

Commit

Permalink
Fix missing_return violation newly enforced in Dart ~2.3.2-dev.0.1 (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
srawlins authored May 23, 2019
1 parent 7c150b7 commit fd349d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/collection/test/functions_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void main() {
test("returns null for an empty iterable", () {
expect(
minBy([], expectAsync1((_) {}, count: 0),
compare: expectAsync2((_, __) {}, count: 0)),
compare: expectAsync2((_, __) => null, count: 0)),
isNull);
});

Expand Down Expand Up @@ -125,7 +125,7 @@ void main() {
test("returns null for an empty iterable", () {
expect(
maxBy([], expectAsync1((_) {}, count: 0),
compare: expectAsync2((_, __) {}, count: 0)),
compare: expectAsync2((_, __) => null, count: 0)),
isNull);
});

Expand Down

0 comments on commit fd349d2

Please sign in to comment.