Incorporating feedback.
diff --git a/example/lazy_transformer/lib/transformer.dart b/example/lazy_transformer/lib/transformer.dart
index b763083..aaee46f 100644
--- a/example/lazy_transformer/lib/transformer.dart
+++ b/example/lazy_transformer/lib/transformer.dart
@@ -12,9 +12,7 @@
// it must be present.
CodedMessageConverter.asPlugin();
- Future<bool> isPrimary(AssetId id) async {
- return id.extension == '.txt';
- }
+ Future<bool> isPrimary(AssetId id) async => id.extension == '.txt';
Future declareOutputs(DeclaringTransform transform) {
transform.declareOutput(transform.primaryId.changeExtension('.shhhhh'));
@@ -27,7 +25,7 @@
var id = transform.primaryInput.id.changeExtension('.shhhhh');
var newContent = new StringBuffer();
- for (int i = 0; i < content.length; i++) {
+ for (var i = 0; i < content.length; i++) {
newContent.write(rot13(content[i]));
}
transform.addOutput(new Asset.fromString(id, newContent.toString()));
diff --git a/example/simple_transformer/lib/transformer.dart b/example/simple_transformer/lib/transformer.dart
index a8f8fb3..974a157 100644
--- a/example/simple_transformer/lib/transformer.dart
+++ b/example/simple_transformer/lib/transformer.dart
@@ -14,9 +14,7 @@
// class to be publicly available as a loadable transformer plugin.
InsertCopyright.asPlugin();
- Future<bool> isPrimary(AssetId id) async {
- return id.extension == '.txt';
- }
+ Future<bool> isPrimary(AssetId id) async => id.extension == '.txt';
Future apply(Transform transform) async {
var content = await transform.primaryInput.readAsString();