mirror of
https://github.com/flutter/packages.git
synced 2025-08-14 18:12:30 +08:00
[various] Enable avoid_dynamic_calls
(#6834)
* Enable the option * Fix camera * Fix webview * Remove unnecessary 'call's from camera tests * Fix maps * Fix sign-in * fix image_picker * Fix IAP * Fix shared_preferences * Fix url_launcher_android * Version bumps * Fix tool * Re-apply webview test fix * Re-bump versions * Fix one new tool issue
This commit is contained in:
@ -298,13 +298,13 @@ class FormatCommand extends PackageCommand {
|
||||
Future<List<String>> _whichAll(String command) async {
|
||||
try {
|
||||
final io.ProcessResult result =
|
||||
await processRunner.run('which', <String>['-a', command]);
|
||||
await processRunner.run('which', <String>['-a', command]);
|
||||
|
||||
if (result.exitCode != 0) {
|
||||
return <String>[];
|
||||
}
|
||||
|
||||
final String stdout = result.stdout.trim() as String;
|
||||
final String stdout = (result.stdout as String).trim();
|
||||
if (stdout.isEmpty) {
|
||||
return <String>[];
|
||||
}
|
||||
|
Reference in New Issue
Block a user