Ignore body_might_complete_normally_catch_error violations (#106563)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user