Chromium Code Reviews| Index: pkg/mock/lib/src/result_matcher.dart |
| diff --git a/pkg/mock/lib/src/result_matcher.dart b/pkg/mock/lib/src/result_matcher.dart |
| index 08f89d6c1b593757cf6194dfa02f7828fc83aeb4..aaf58069f1e5b58131ac7b66c938ca34ff623251 100644 |
| --- a/pkg/mock/lib/src/result_matcher.dart |
| +++ b/pkg/mock/lib/src/result_matcher.dart |
| @@ -21,7 +21,7 @@ class _ResultMatcher extends Matcher { |
| bool matches(item, Map matchState) { |
| if (item is! LogEntry) { |
| - return false; |
| + return false; |
| } |
| // normalize the action; _PROXY is like _RETURN. |
| Action eaction = item.action; |
| @@ -33,10 +33,11 @@ class _ResultMatcher extends Matcher { |
| Description describe(Description description) { |
| description.add(' to '); |
| - if (action == Action.RETURN || action == Action.PROXY) |
| + if (action == Action.RETURN || action == Action.PROXY) { |
| description.add('return '); |
|
Siggi Cherem (dart-lang)
2014/05/08 21:41:22
how about:
description.add(... ? 'return' : 'throw
kevmoo
2014/05/08 22:43:28
Trying to leave code mostly as I found it.
|
| - else |
| + } else { |
| description.add('throw '); |
| + } |
| return description.addDescriptionOf(value); |
| } |