Index: lib/src/future_matchers.dart |
diff --git a/lib/src/future_matchers.dart b/lib/src/future_matchers.dart |
index 615b5880fc0d9bb2905a69378b0865e675aff1b2..bdbd62f734dc5da3ae271a78fd491560459cbece 100644 |
--- a/lib/src/future_matchers.dart |
+++ b/lib/src/future_matchers.dart |
@@ -46,11 +46,13 @@ class _Completes extends Matcher { |
var done = wrapAsync((fn) => fn(), _id); |
item.then((value) { |
- done(() { if (_matcher != null) expect(value, _matcher); }); |
+ done(() { |
+ if (_matcher != null) expect(value, _matcher); |
+ }); |
}, onError: (error, trace) { |
var id = _id == '' ? '' : '${_id} '; |
var reason = 'Expected future ${id}to complete successfully, ' |
- 'but it failed with ${error}'; |
+ 'but it failed with ${error}'; |
if (trace != null) { |
var stackTrace = trace.toString(); |
stackTrace = ' ${stackTrace.replaceAll('\n', '\n ')}'; |