remove unnecessary string interpolations (#49622)

This commit is contained in:
Alexandre Ardhuin
2020-01-31 18:30:21 +01:00
committed by GitHub
parent 275ec45ec4
commit b5f328e37e
55 changed files with 78 additions and 76 deletions

View File

@@ -25,7 +25,7 @@ class CodeGenerator {
currentLine += ' $word';
} else {
result.writeln('$prefix$currentLine');
currentLine = '$word';
currentLine = word;
}
}
if (currentLine.isNotEmpty) {

View File

@@ -339,7 +339,7 @@ String describeLocale(String tag) {
assert(subtags.isNotEmpty);
assert(_languages.containsKey(subtags[0]));
final String language = _languages[subtags[0]];
String output = '$language';
String output = language;
String region;
String script;
if (subtags.length == 2) {