Unverified Commit 1c79347e authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

use yield* (#48307)

parent 317b9e78
......@@ -37,8 +37,7 @@ Stream<String> runAndGetStdout(String executable, List<String> arguments, {
stderr.addStream(process.stderr);
final Stream<String> lines = process.stdout.transform(utf8.decoder).transform(const LineSplitter());
await for (final String line in lines)
yield line;
yield* lines;
final int exitCode = await process.exitCode;
if ((exitCode == 0) == expectNonZeroExit || (expectedExitCode != null && exitCode != expectedExitCode)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment