Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Fix missing_return violation newly enforced in Dart ~2.3.2-dev.0.1 #106

Merged
merged 1 commit into from
May 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 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