Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 17fa814

Browse files
Fix one new tool issue
1 parent 253561c commit 17fa814

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/tool/lib/src/format_command.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,13 @@ class FormatCommand extends PackageCommand {
298298
Future<List<String>> _whichAll(String command) async {
299299
try {
300300
final io.ProcessResult result =
301-
await processRunner.run('which', <String>['-a', command]);
301+
await processRunner.run('which', <String>['-a', command]);
302302

303303
if (result.exitCode != 0) {
304304
return <String>[];
305305
}
306306

307-
final String stdout = result.stdout.trim() as String;
307+
final String stdout = (result.stdout as String).trim();
308308
if (stdout.isEmpty) {
309309
return <String>[];
310310
}

0 commit comments

Comments
 (0)