[flutter_tools] throwToolExit should return Never (#78954)

This commit is contained in:
Jia Hao
2021-03-25 01:40:03 +08:00
committed by GitHub
parent ea3d4dbd6e
commit aa1df71c20
16 changed files with 5 additions and 25 deletions

View File

@@ -241,7 +241,6 @@ void main() {
final DummyFlutterCommand flutterCommand = DummyFlutterCommand(
commandFunction: () async {
throwToolExit('fail');
return null; // unreachable
}
);
try {
@@ -469,7 +468,6 @@ void main() {
final DummyFlutterCommand flutterCommand = DummyFlutterCommand(
commandFunction: () async {
throwToolExit('fail');
return null; // unreachable
},
);