remove unnecessary .toString() (#103226)
This commit is contained in:
committed by
GitHub
parent
a1a46c96c4
commit
d40ee2149c
@@ -1265,7 +1265,7 @@ class LocalizationsGenerator {
|
||||
final List<String> sortedClassImports = supportedLocales
|
||||
.where((LocaleInfo locale) => isBaseClassLocale(locale, locale.languageCode))
|
||||
.map((LocaleInfo locale) {
|
||||
final String library = '${fileName}_${locale.toString()}';
|
||||
final String library = '${fileName}_$locale';
|
||||
if (useDeferredLoading) {
|
||||
return "import '$library.$fileExtension' deferred as $library;";
|
||||
} else {
|
||||
|
||||
@@ -442,7 +442,7 @@ class AppResourceBundle {
|
||||
} on FormatException catch (e) {
|
||||
throw L10nException(
|
||||
'The arb file ${file.path} has the following formatting issue: \n'
|
||||
'${e.toString()}',
|
||||
'$e',
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user