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

Unified Diff: lib/src/errors.dart

Issue 1947773002: Fix all strong-mode warnings. (Closed) Base URL: git@github.com:dart-lang/barback@master
Patch Set: Code review changes Created 4 years, 7 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 | « lib/src/build_result.dart ('k') | lib/src/graph/asset_cascade.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/errors.dart
diff --git a/lib/src/errors.dart b/lib/src/errors.dart
index 3488e31459528b3c9ac40c140715eb7b552774a4..96cfbc7ee5a0704868b1b0d00ab6ffda0b729e43 100644
--- a/lib/src/errors.dart
+++ b/lib/src/errors.dart
@@ -24,8 +24,8 @@ class AssetNotFoundException implements Exception {
Iterable<BarbackException> flattenAggregateExceptions(
Iterable<BarbackException> errors) {
return errors.expand((error) {
- if (error is! AggregateException) return [error];
- return error.errors;
+ if (error is AggregateException) return error.errors;
+ return [error];
});
}
« no previous file with comments | « lib/src/build_result.dart ('k') | lib/src/graph/asset_cascade.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698