Turn on unawaited_futures in flutter_tools (#21048)

This commit is contained in:
xster
2018-08-30 20:57:44 -07:00
committed by GitHub
parent f2442b8a13
commit cda2c223f5
20 changed files with 97 additions and 74 deletions

View File

@@ -45,8 +45,7 @@ class AnalysisServer {
printTrace('dart ${command.skip(1).join(' ')}');
_process = await processManager.start(command);
// This callback hookup can't throw.
_process.exitCode
.whenComplete(() => _process = null); // ignore: unawaited_futures
_process.exitCode.whenComplete(() => _process = null); // ignore: unawaited_futures
final Stream<String> errorStream =
_process.stderr.transform(utf8.decoder).transform(const LineSplitter());