Re-enable missing_return (#20844)
This commit is contained in:
@@ -125,8 +125,12 @@ void main() {
|
||||
// Crash if called a third time which is unexpected.
|
||||
mockTimes = <int>[1000, 2000];
|
||||
|
||||
final DummyFlutterCommand flutterCommand =
|
||||
new DummyFlutterCommand(commandFunction: () async { throwToolExit('fail'); });
|
||||
final DummyFlutterCommand flutterCommand = new DummyFlutterCommand(
|
||||
commandFunction: () async {
|
||||
throwToolExit('fail');
|
||||
return null; // unreachable
|
||||
},
|
||||
);
|
||||
|
||||
try {
|
||||
await flutterCommand.run();
|
||||
|
||||
Reference in New Issue
Block a user