Fix missing_return violation newly enforced in Dart ~2.3.2-dev.0.1 (#106)
diff --git a/test/functions_test.dart b/test/functions_test.dart
index 809d486..e754d54 100644
--- a/test/functions_test.dart
+++ b/test/functions_test.dart
@@ -89,7 +89,7 @@
test("returns null for an empty iterable", () {
expect(
minBy([], expectAsync1((_) {}, count: 0),
- compare: expectAsync2((_, __) {}, count: 0)),
+ compare: expectAsync2((_, __) => null, count: 0)),
isNull);
});
@@ -125,7 +125,7 @@
test("returns null for an empty iterable", () {
expect(
maxBy([], expectAsync1((_) {}, count: 0),
- compare: expectAsync2((_, __) {}, count: 0)),
+ compare: expectAsync2((_, __) => null, count: 0)),
isNull);
});