Index: pkg/scheduled_test/lib/src/utils.dart |
diff --git a/pkg/scheduled_test/lib/src/utils.dart b/pkg/scheduled_test/lib/src/utils.dart |
index 2b8b78ef9e9dfd98143cdaacb6e75f88117ac809..7daac77553b13dea55e76cf04318a1fafeb0c29f 100644 |
--- a/pkg/scheduled_test/lib/src/utils.dart |
+++ b/pkg/scheduled_test/lib/src/utils.dart |
@@ -28,8 +28,7 @@ class Pair<E, F> { |
/// Configures [future] so that its result (success or exception) is passed on |
/// to [completer]. |
void chainToCompleter(Future future, Completer completer) { |
- future.then((value) => completer.complete(value), |
- onError: completer.completeError); |
+ future.then(completer.complete, onError: completer.completeError); |
} |
/// Prepends each line in [text] with [prefix]. If [firstPrefix] is passed, the |