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

Unified Diff: pkg/barback/lib/src/phase_forwarder.dart

Issue 26409003: Fix an analyzer error in barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/lib/src/phase_forwarder.dart
diff --git a/pkg/barback/lib/src/phase_forwarder.dart b/pkg/barback/lib/src/phase_forwarder.dart
index 72ab0d253ed191157b5bde906a5be8531c71665e..90831f7eb6154e84e5f1420e06b9cf5474faed13 100644
--- a/pkg/barback/lib/src/phase_forwarder.dart
+++ b/pkg/barback/lib/src/phase_forwarder.dart
@@ -110,9 +110,10 @@ class PhaseForwarder {
// If there isn't a final asset being forwarded yet, we should forward one.
// It should be dirty iff any of the intermediate assets are dirty.
if (_outputController == null) {
- var asset = _intermediateAssets.firstWhere((asset) => asset.state.isDirty,
+ var finalAsset = _intermediateAssets.firstWhere(
+ (asset) => asset.state.isDirty,
orElse: () => _intermediateAssets.first);
- _outputController = new AssetNodeController.from(asset);
+ _outputController = new AssetNodeController.from(finalAsset);
_onForwardingController.add(output);
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698