Fix missing return statements on function literals (#31825)

This commit is contained in:
Sam Rawlins
2019-05-09 12:43:51 -07:00
committed by Jonah Williams
parent 66a6726306
commit 9c77e8e8a0
5 changed files with 10 additions and 5 deletions

View File

@@ -182,7 +182,7 @@ class FlutterDevice {
// The flutterExit message only returns if it fails, so just wait a few
// seconds then assume it worked.
// TODO(ianh): We should make this return once the VM service disconnects.
await Future.wait(futures).timeout(const Duration(seconds: 2), onTimeout: () { });
await Future.wait(futures).timeout(const Duration(seconds: 2), onTimeout: () => <void>[]);
}
Future<Uri> setupDevFS(

View File

@@ -446,6 +446,7 @@ class HotRunner extends ResidentRunner {
// Resume the isolate so that it can be killed by the embedder.
return view.uiIsolate.resume();
}
return null;
},
).whenComplete(
() { completer.complete(null); },

View File

@@ -366,6 +366,7 @@ abstract class FlutterTestDriver {
_debugPrint('$task...');
return callback()..timeout(timeout, onTimeout: () {
_debugPrint('$task is taking longer than usual...');
return null;
});
}
@@ -388,6 +389,7 @@ abstract class FlutterTestDriver {
print(messages.toString());
timeoutExpired = true;
print('$task is taking longer than usual...');
return null;
});
return future.catchError((dynamic error) {

View File

@@ -187,6 +187,7 @@ Show information about a connected device.
-x, --xml output information as xml plist instead of key/value pairs
-h, --help prints usage information
''');
return null;
});
final IOSWorkflowTestTarget workflow = IOSWorkflowTestTarget();
final ValidationResult result = await workflow.validate();