Chromium Code Reviews| Index: tools/testing/dart/test_options.dart |
| diff --git a/tools/testing/dart/test_options.dart b/tools/testing/dart/test_options.dart |
| index 55789fb35d56ef816d039ce7b5b2e9556005ff1e..1113174f7d1e42d9caf51dc92e5e9d093db60b0a 100644 |
| --- a/tools/testing/dart/test_options.dart |
| +++ b/tools/testing/dart/test_options.dart |
| @@ -882,7 +882,7 @@ Note: currently only implemented for dart2js.''', |
| */ |
| _TestOptionSpecification _getSpecification(String name) { |
| for (var option in _options) { |
| - if (option.keys.any((key) => key == name)) { |
| + if (option.keys.contains(name)) { |
|
Lasse Reichstein Nielsen
2015/11/11 16:05:12
That's exactly what "contains" does.
|
| return option; |
| } |
| } |