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

@@ -625,7 +625,7 @@ class KeyEventSimulator {
///
/// - [simulateKeyUpEvent] to simulate the corresponding key up event.
static Future<bool> simulateKeyDownEvent(LogicalKeyboardKey key, {String? platform, PhysicalKeyboardKey? physicalKey}) async {
return await TestAsyncUtils.guard<bool>(() async {
return TestAsyncUtils.guard<bool>(() async {
platform ??= Platform.operatingSystem;
assert(_osIsSupported(platform!), 'Platform $platform not supported for key simulation');

View File

@@ -50,7 +50,7 @@ Future<ui.Image> createTestImage({
Future<ui.Image> _createImage(int width, int height) async {
if (kIsWeb) {
return await _webCreateTestImage(
return _webCreateTestImage(
width: width,
height: height,
);
@@ -66,7 +66,7 @@ Future<ui.Image> _createImage(int width, int height) async {
completer.complete(image);
},
);
return await completer.future;
return completer.future;
}
/// Web doesn't support [decodeImageFromPixels]. Instead, generate a 1bpp BMP