Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 7f80f06

Browse files
keertipnshahan
authored andcommitted
Remove an unnecessary cast, fixes build failure with the upcoming Dart SDK.
PiperOrigin-RevId: 185384798
1 parent 38b2bd8 commit 7f80f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/utils/async/async_where.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Future<T> asyncFirst<T>(List<T> items, Future<bool> filter(T item),
3232
{orElse()}) =>
3333
asyncWhere<T>(items, filter)
3434
.firstWhere((_) => true, defaultValue: orElse)
35-
.then((x) => x as T);
35+
.then((x) => x);
3636

3737
/// Returns a future that completes with the unique item in [items] for which
3838
/// [filter] returns a future that completes with true. It completes with an

0 commit comments

Comments
 (0)