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

Unified Diff: lib/src/transformer/wrapping_aggregate_transformer.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/transformer/declaring_aggregate_transform.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/transformer/wrapping_aggregate_transformer.dart
diff --git a/lib/src/transformer/wrapping_aggregate_transformer.dart b/lib/src/transformer/wrapping_aggregate_transformer.dart
index f41d07584a3fdcd742e6bfcd89c52081ad02518d..a24260da3f4acb79e0d2ca6b704c596f4ce528a1 100644
--- a/lib/src/transformer/wrapping_aggregate_transformer.dart
+++ b/lib/src/transformer/wrapping_aggregate_transformer.dart
@@ -7,7 +7,6 @@ library barback.transformer.wrapping_aggregate_transformer;
import 'dart:async';
import '../asset/asset_id.dart';
-import '../utils.dart';
import 'aggregate_transform.dart';
import 'aggregate_transformer.dart';
import 'declaring_aggregate_transform.dart';
@@ -44,7 +43,7 @@ class WrappingAggregateTransformer implements AggregateTransformer {
WrappingAggregateTransformer._(this.transformer);
Future<String> classifyPrimary(AssetId id) {
- return syncFuture(() => transformer.isPrimary(id))
+ return new Future.sync(() => transformer.isPrimary(id))
.then((isPrimary) => isPrimary ? id.path : null);
}
« no previous file with comments | « lib/src/transformer/declaring_aggregate_transform.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698