Index: pkg/barback/test/transformer/log.dart |
diff --git a/pkg/barback/test/transformer/log.dart b/pkg/barback/test/transformer/log.dart |
index 7866722c044afbc6319a2d585a2b1a1309cf37db..4e3dd72d5424428a19fc083dc10fb6305131a934 100644 |
--- a/pkg/barback/test/transformer/log.dart |
+++ b/pkg/barback/test/transformer/log.dart |
@@ -22,22 +22,20 @@ class LogTransformer extends MockTransformer { |
LogTransformer(this._entries); |
- Future<bool> doIsPrimary(_) => new Future.value(true); |
- |
- Future doApply(Transform transform) { |
- return newFuture(() { |
- for (var entry in _entries) { |
- var parts = entry.split(":"); |
- var logFn; |
- switch (parts[0]) { |
- case "error": logFn = transform.logger.error; break; |
- case "warning": logFn = transform.logger.warning; break; |
- case "info": logFn = transform.logger.info; break; |
- case "fine": logFn = transform.logger.fine; break; |
- } |
- |
- logFn(parts[1].trim()); |
+ bool doIsPrimary(AssetId id) => true; |
+ |
+ void doApply(Transform transform) { |
+ for (var entry in _entries) { |
+ var parts = entry.split(":"); |
+ var logFn; |
+ switch (parts[0]) { |
+ case "error": logFn = transform.logger.error; break; |
+ case "warning": logFn = transform.logger.warning; break; |
+ case "info": logFn = transform.logger.info; break; |
+ case "fine": logFn = transform.logger.fine; break; |
} |
- }); |
+ |
+ logFn(parts[1].trim()); |
+ } |
} |
} |