cleanup now-irrelevant ignores for deprecated_member_use (#143403)
Follow-up to https://github.com/flutter/flutter/pull/143347.
This commit is contained in:
committed by
GitHub
parent
f190d6259f
commit
3f09b23338
@@ -133,7 +133,7 @@ Future<int> run(
|
||||
firstStackTrace = stackTrace;
|
||||
return _handleToolError(error, stackTrace, verbose, args, reportCrashes!, getVersion, shutdownHooks);
|
||||
}
|
||||
}, onError: (Object error, StackTrace stackTrace) async { // ignore: deprecated_member_use
|
||||
}, onError: (Object error, StackTrace stackTrace) async {
|
||||
// If sending a crash report throws an error into the zone, we don't want
|
||||
// to re-try sending the crash report with *that* error. Rather, we want
|
||||
// to send the original error that triggered the crash report.
|
||||
|
||||
@@ -117,7 +117,7 @@ Future<T> asyncGuard<T>(
|
||||
} catch (e, s) { // ignore: avoid_catches_without_on_clauses, forwards to Future
|
||||
handleError(e, s);
|
||||
}
|
||||
}, onError: (Object e, StackTrace s) { // ignore: deprecated_member_use
|
||||
}, onError: (Object e, StackTrace s) {
|
||||
handleError(e, s);
|
||||
});
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import 'package:flutter_tools/src/base/io.dart';
|
||||
import 'package:flutter_tools/src/build_info.dart';
|
||||
import 'package:flutter_tools/src/device.dart';
|
||||
import 'package:flutter_tools/src/test/flutter_platform.dart';
|
||||
import 'package:test_core/backend.dart'; // ignore: deprecated_member_use
|
||||
import 'package:test_core/backend.dart';
|
||||
|
||||
import '../src/common.dart';
|
||||
import '../src/context.dart';
|
||||
|
||||
@@ -86,7 +86,7 @@ void main() {
|
||||
));
|
||||
return null;
|
||||
},
|
||||
onError: (Object error, StackTrace stack) { // ignore: deprecated_member_use
|
||||
onError: (Object error, StackTrace stack) {
|
||||
expect(firstExitCode, isNotNull);
|
||||
expect(firstExitCode, isNot(0));
|
||||
expect(error.toString(), 'Exception: test exit');
|
||||
@@ -141,7 +141,7 @@ void main() {
|
||||
));
|
||||
return null;
|
||||
},
|
||||
onError: (Object error, StackTrace stack) { // ignore: deprecated_member_use
|
||||
onError: (Object error, StackTrace stack) {
|
||||
expect(firstExitCode, isNotNull);
|
||||
expect(firstExitCode, isNot(0));
|
||||
expect(error.toString(), 'Exception: test exit');
|
||||
@@ -189,7 +189,7 @@ void main() {
|
||||
));
|
||||
return null;
|
||||
},
|
||||
onError: (Object error, StackTrace stack) { // ignore: deprecated_member_use
|
||||
onError: (Object error, StackTrace stack) {
|
||||
expect(firstExitCode, isNotNull);
|
||||
expect(firstExitCode, isNot(0));
|
||||
expect(error.toString(), 'Exception: test exit');
|
||||
@@ -284,7 +284,7 @@ void main() {
|
||||
));
|
||||
return null;
|
||||
},
|
||||
onError: (Object error, StackTrace stack) { // ignore: deprecated_member_use
|
||||
onError: (Object error, StackTrace stack) {
|
||||
expect(firstExitCode, isNotNull);
|
||||
expect(firstExitCode, isNot(0));
|
||||
expect(error.toString(), 'Exception: test exit');
|
||||
|
||||
Reference in New Issue
Block a user