Enable unnecessary_await_in_return lint (#77434)
This commit is contained in:
committed by
GitHub
parent
8a9042ba91
commit
cb867bbedc
@@ -38,7 +38,7 @@ class NewGalleryWebCompileTest {
|
||||
() async {
|
||||
await flutter('doctor');
|
||||
|
||||
return await WebCompileTest.runSingleBuildTest(
|
||||
return WebCompileTest.runSingleBuildTest(
|
||||
directory: galleryDir.path,
|
||||
metric: metricKeyPrefix,
|
||||
measureBuildTime: true,
|
||||
|
||||
@@ -33,6 +33,6 @@ Future<void> main() async {
|
||||
});
|
||||
|
||||
final TaskFunction taskFunction = createPlatformViewStartupTest();
|
||||
return await taskFunction();
|
||||
return taskFunction();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user