Enable avoid_redundant_argument_values lint (#91409)
This commit is contained in:
@@ -15,7 +15,7 @@ Future<void> main() async {
|
||||
final HttpClient client = HttpClient();
|
||||
final HttpClientRequest request = await client.getUrl(Uri.parse(registry));
|
||||
final HttpClientResponse response = await request.close();
|
||||
final String body = (await response.cast<List<int>>().transform<String>(utf8.decoder).toList()).join('');
|
||||
final String body = (await response.cast<List<int>>().transform<String>(utf8.decoder).toList()).join();
|
||||
final File subtagRegistry = File('../language_subtag_registry.dart');
|
||||
final File subtagRegistryFlutterTools = File('../../../../packages/flutter_tools/lib/src/localizations/language_subtag_registry.dart');
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ class LocaleInfo implements Comparable<LocaleInfo> {
|
||||
return originalString
|
||||
.split('_')
|
||||
.map<String>((String part) => part.substring(0, 1).toUpperCase() + part.substring(1).toLowerCase())
|
||||
.join('');
|
||||
.join();
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -232,17 +232,14 @@ GeneratorOptions parseArgs(List<String> rawArgs) {
|
||||
..addFlag(
|
||||
'overwrite',
|
||||
abbr: 'w',
|
||||
defaultsTo: false,
|
||||
)
|
||||
..addFlag(
|
||||
'material',
|
||||
help: 'Whether to print the generated classes for the Material package only. Ignored when --overwrite is passed.',
|
||||
defaultsTo: false,
|
||||
)
|
||||
..addFlag(
|
||||
'cupertino',
|
||||
help: 'Whether to print the generated classes for the Cupertino package only. Ignored when --overwrite is passed.',
|
||||
defaultsTo: false,
|
||||
);
|
||||
final argslib.ArgResults args = argParser.parse(rawArgs);
|
||||
final bool writeToFile = args['overwrite'] as bool;
|
||||
|
||||
Reference in New Issue
Block a user