diff --git a/test/utils/wait_for.dart b/test/utils/wait_for.dart index b60ead0f..4f7194cf 100644 --- a/test/utils/wait_for.dart +++ b/test/utils/wait_for.dart @@ -68,10 +68,7 @@ extension TaskWaiterForLists on Iterable { .removeWhere((element) => completedTasks.containsKey(element)); if (remainingUids.isEmpty) { - return originalUids - .map((e) => completedTasks[e.uid]) - .nonNulls - .toList(); + return originalUids.map((e) => completedTasks[e.uid]).nonNulls.toList(); } await Future.delayed(interval); }