Re-enable missing_return (#20844)

This commit is contained in:
Ian Hickson
2018-08-28 11:22:57 -07:00
committed by GitHub
parent 458d0b3d21
commit 53b635817c
48 changed files with 88 additions and 59 deletions

View File

@@ -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();