Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Unified Diff: packages/matcher/lib/src/operator_matchers.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/matcher/lib/src/numeric_matchers.dart ('k') | packages/matcher/lib/src/order_matchers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/matcher/lib/src/operator_matchers.dart
diff --git a/packages/matcher/lib/src/operator_matchers.dart b/packages/matcher/lib/src/operator_matchers.dart
index 6824c5ba9eeff19da81a33010142948544744960..5d6baedf87a3abdae62dc14b93407655d2ceb779 100644
--- a/packages/matcher/lib/src/operator_matchers.dart
+++ b/packages/matcher/lib/src/operator_matchers.dart
@@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library matcher.operator_matchers;
-
import 'interfaces.dart';
import 'util.dart';
@@ -91,7 +89,7 @@ class _AnyOf extends Matcher {
}
List<Matcher> _wrapArgs(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
- Iterable<Matcher> matchers;
+ Iterable args;
if (arg0 is List) {
if (arg1 != null ||
arg2 != null ||
@@ -103,11 +101,10 @@ List<Matcher> _wrapArgs(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
' null.');
}
- matchers = arg0;
+ args = arg0;
} else {
- matchers =
- [arg0, arg1, arg2, arg3, arg4, arg5, arg6].where((e) => e != null);
+ args = [arg0, arg1, arg2, arg3, arg4, arg5, arg6].where((e) => e != null);
}
- return matchers.map((e) => wrapMatcher(e)).toList();
+ return args.map((e) => wrapMatcher(e)).toList();
}
« no previous file with comments | « packages/matcher/lib/src/numeric_matchers.dart ('k') | packages/matcher/lib/src/order_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698