Add missing awaits (#15595)

This commit is contained in:
Mikkel Nygaard Ravn
2018-03-21 00:44:19 +01:00
committed by GitHub
parent 537e67262d
commit 8b25d4eadb
2 changed files with 3 additions and 3 deletions

View File

@@ -225,10 +225,10 @@ class AndroidWorkflow extends DoctorValidator implements Workflow {
environment: androidSdk.sdkManagerEnv,
);
waitGroup<Null>(<Future<Null>>[
process.stdin.addStream(stdin);
await waitGroup<Null>(<Future<Null>>[
stdout.addStream(process.stdout),
stderr.addStream(process.stderr),
process.stdin.addStream(stdin),
]);
final int exitCode = await process.exitCode;

View File

@@ -194,7 +194,7 @@ Future<int> runInteractively(List<String> command, {
process.stdin.addStream(stdin);
// Wait for stdout and stderr to be fully processed, because process.exitCode
// may complete first.
Future.wait<dynamic>(<Future<dynamic>>[
await Future.wait<dynamic>(<Future<dynamic>>[
stdout.addStream(process.stdout),
stderr.addStream(process.stderr),
]);