enable lint prefer_single_quotes (#12665)

This commit is contained in:
Alexandre Ardhuin
2017-10-22 18:11:36 +02:00
committed by GitHub
parent b07ea41954
commit 1fce14a31c
90 changed files with 664 additions and 663 deletions

View File

@@ -46,21 +46,21 @@ class Calculator {
try {
final List<dynamic> result = decoder.convert(_data);
final int n = result.length;
onResultListener("Decoded $n results");
onResultListener('Decoded $n results');
} catch (e, stack) {
print("Invalid JSON file: $e");
print('Invalid JSON file: $e');
print(stack);
}
}
static String _replicateJson(String data, int count) {
final StringBuffer buffer = new StringBuffer()..write("[");
final StringBuffer buffer = new StringBuffer()..write('[');
for (int i = 0; i < count; i++) {
buffer.write(data);
if (i < count - 1)
buffer.write(',');
}
buffer.write("]");
buffer.write(']');
return buffer.toString();
}
}