Ignore body_might_complete_normally_catch_error violations (#105795)

This commit is contained in:
Sam Rawlins
2022-06-16 16:12:06 -07:00
committed by GitHub
parent 32b22b85de
commit f104be7ae9
5 changed files with 24 additions and 3 deletions

View File

@@ -297,7 +297,11 @@ Future<ProcessTestResult> runFlutter(
}
process.stdin.write('q');
return -1; // discarded
}).catchError((Object error) { /* ignore errors here, they will be reported on the next line */ }));
})
// TODO(srawlins): Fix this static issue,
// https://github.com/flutter/flutter/issues/105750.
// ignore: body_might_complete_normally_catch_error
.catchError((Object error) { /* ignore errors here, they will be reported on the next line */ }));
final int exitCode = await process.exitCode;
if (streamingLogs) {
debugPrint('${stamp()} (process terminated with exit code $exitCode)');