From e5c2ddc70b0c93be1ea1f1809ff593e73f50a504 Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Thu, 23 May 2019 11:09:08 -0700 Subject: [PATCH] Fix missing_return violation newly enforced in Dart ~2.3.2-dev.0.1 --- test/functions_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 @@ void main() { 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 @@ void main() { test("returns null for an empty iterable", () { expect( maxBy([], expectAsync1((_) {}, count: 0), - compare: expectAsync2((_, __) {}, count: 0)), + compare: expectAsync2((_, __) => null, count: 0)), isNull); });