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

@@ -38,7 +38,7 @@ class NewGalleryWebCompileTest {
() async {
await flutter('doctor');
return await WebCompileTest.runSingleBuildTest(
return WebCompileTest.runSingleBuildTest(
directory: galleryDir.path,
metric: metricKeyPrefix,
measureBuildTime: true,

View File

@@ -33,6 +33,6 @@ Future<void> main() async {
});
final TaskFunction taskFunction = createPlatformViewStartupTest();
return await taskFunction();
return taskFunction();
});
}

View File

@@ -22,7 +22,7 @@ void main() {
final Directory appDir = dir(path.join(flutterDirectory.path, 'dev/integration_tests/ui'));
section('TEST WHETHER `flutter drive --route` WORKS');
await inDirectory(appDir, () async {
return await flutter(
return flutter(
'drive',
options: <String>['--verbose', '-d', device.deviceId, '--route', '/smuggle-it', 'lib/route.dart'],
canFail: false,

View File

@@ -8,6 +8,6 @@ import 'package:flutter_devicelab/tasks/web_benchmarks.dart';
/// Runs all Web benchmarks using the CanvasKit rendering backend.
Future<void> main() async {
await task(() async {
return await runWebBenchmark(useCanvasKit: true);
return runWebBenchmark(useCanvasKit: true);
});
}

View File

@@ -8,6 +8,6 @@ import 'package:flutter_devicelab/tasks/web_benchmarks.dart';
/// Runs all Web benchmarks using the HTML rendering backend.
Future<void> main() async {
await task(() async {
return await runWebBenchmark(useCanvasKit: false);
return runWebBenchmark(useCanvasKit: false);
});
}