Enable unnecessary_await_in_return lint (#77434)

This commit is contained in:
Michael Goderbauer
2021-03-05 18:38:15 -08:00
committed by GitHub
parent 8a9042ba91
commit cb867bbedc
91 changed files with 183 additions and 183 deletions

View File

@@ -206,7 +206,7 @@ class FuchsiaRemoteConnection {
interface = addressAndInterface[1];
}
return await FuchsiaRemoteConnection.connectWithSshCommandRunner(
return FuchsiaRemoteConnection.connectWithSshCommandRunner(
SshCommandRunner(
address: address,
interface: interface,
@@ -356,7 +356,7 @@ class FuchsiaRemoteConnection {
}
final List<List<FlutterView>> flutterViewLists =
await _invokeForAllVms<List<FlutterView>>((DartVm vmService) async {
return await vmService.getAllFlutterViews();
return vmService.getAllFlutterViews();
});
final List<FlutterView> results = flutterViewLists.fold<List<FlutterView>>(
<FlutterView>[], (List<FlutterView> acc, List<FlutterView> element) {