Enable unnecessary_await_in_return lint (#77434)
This commit is contained in:
committed by
GitHub
parent
8a9042ba91
commit
cb867bbedc
@@ -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');
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user