Ignore body_might_complete_normally_catch_error violations (#106563)

This commit is contained in:
Sam Rawlins
2022-07-29 12:59:08 -07:00
committed by GitHub
parent 6048e07f47
commit 0c57b31265
2 changed files with 8 additions and 1 deletions

View File

@@ -623,6 +623,9 @@ class HotRunner extends ResidentRunner {
continue;
}
operations.add(device.vmService!.service.kill(isolateRef.id!)
// TODO(srawlins): Fix this static issue,
// https://github.com/flutter/flutter/issues/105750.
// ignore: body_might_complete_normally_catch_error
.catchError((dynamic error, StackTrace stackTrace) {
// Do nothing on a SentinelException since it means the isolate
// has already been killed.

View File

@@ -683,7 +683,11 @@ class BrowserManager {
unawaited(chrome.onExit.then((int? browserExitCode) {
throwToolExit('${runtime.name} exited with code $browserExitCode before connecting.');
}).catchError((Object error, StackTrace stackTrace) {
})
// TODO(srawlins): Fix this static issue,
// https://github.com/flutter/flutter/issues/105750.
// ignore: body_might_complete_normally_catch_error
.catchError((Object error, StackTrace stackTrace) {
if (!completer.isCompleted) {
completer.completeError(error, stackTrace);
}