Enable unnecessary_await_in_return lint (#77434)
This commit is contained in:
committed by
GitHub
parent
8a9042ba91
commit
cb867bbedc
@@ -210,7 +210,7 @@ class ApkExtractor {
|
||||
|
||||
/// Gets the content of the `AndroidManifest.xml`.
|
||||
Future<String> getAndroidManifest(String apk) async {
|
||||
return await _evalApkAnalyzer(
|
||||
return _evalApkAnalyzer(
|
||||
<String>[
|
||||
'manifest',
|
||||
'print',
|
||||
|
||||
@@ -750,7 +750,7 @@ Future<int> gitClone({String path, String repo}) async {
|
||||
|
||||
await Directory(path).create(recursive: true);
|
||||
|
||||
return await inDirectory<int>(
|
||||
return inDirectory<int>(
|
||||
path,
|
||||
() => exec('git', <String>['clone', repo]),
|
||||
);
|
||||
|
||||
@@ -35,13 +35,13 @@ TaskFunction createMicrobenchmarkTask() {
|
||||
device.deviceId,
|
||||
];
|
||||
options.add(benchmarkPath);
|
||||
return await _startFlutter(
|
||||
return _startFlutter(
|
||||
options: options,
|
||||
canFail: false,
|
||||
);
|
||||
});
|
||||
|
||||
return await _readJsonResults(flutterProcess);
|
||||
return _readJsonResults(flutterProcess);
|
||||
}
|
||||
return _run();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ class NewGalleryPerfTest extends PerfTest {
|
||||
// turns out to be updated frequently in the future, we can set up an auto
|
||||
// roller to update this version.
|
||||
await getNewGallery(galleryVersion, galleryDir);
|
||||
return await super.run();
|
||||
return super.run();
|
||||
}
|
||||
|
||||
final Directory galleryDir;
|
||||
|
||||
@@ -486,7 +486,7 @@ class StartupTest {
|
||||
final bool reportMetrics;
|
||||
|
||||
Future<TaskResult> run() async {
|
||||
return await inDirectory<TaskResult>(testDirectory, () async {
|
||||
return inDirectory<TaskResult>(testDirectory, () async {
|
||||
final Device device = await devices.workingDevice;
|
||||
const int iterations = 5;
|
||||
final List<Map<String, dynamic>> results = <Map<String, dynamic>>[];
|
||||
@@ -995,7 +995,7 @@ class CompileTest {
|
||||
final bool reportPackageContentSizes;
|
||||
|
||||
Future<TaskResult> run() async {
|
||||
return await inDirectory<TaskResult>(testDirectory, () async {
|
||||
return inDirectory<TaskResult>(testDirectory, () async {
|
||||
final Device device = await devices.workingDevice;
|
||||
await device.unlock();
|
||||
await flutter('packages', options: <String>['get']);
|
||||
|
||||
@@ -25,7 +25,7 @@ Future<TaskResult> runWebBenchmark({ @required bool useCanvasKit }) async {
|
||||
// Reduce logging level. Otherwise, package:webkit_inspection_protocol is way too spammy.
|
||||
Logger.root.level = Level.INFO;
|
||||
final String macrobenchmarksDirectory = path.join(flutterDirectory.path, 'dev', 'benchmarks', 'macrobenchmarks');
|
||||
return await inDirectory(macrobenchmarksDirectory, () async {
|
||||
return inDirectory(macrobenchmarksDirectory, () async {
|
||||
await evalFlutter('build', options: <String>[
|
||||
'web',
|
||||
'--dart-define=FLUTTER_WEB_ENABLE_PROFILING=true',
|
||||
|
||||
Reference in New Issue
Block a user