From cef3c34f765aea4cb8068d32707e683a6a881d59 Mon Sep 17 00:00:00 2001 From: Alexandre Roux Date: Mon, 14 Oct 2024 19:10:15 +0200 Subject: [PATCH] fix lints --- packages/build_menu_flutter/lib/src/app_build_menu.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/build_menu_flutter/lib/src/app_build_menu.dart b/packages/build_menu_flutter/lib/src/app_build_menu.dart index 69ce972..a74c7b7 100644 --- a/packages/build_menu_flutter/lib/src/app_build_menu.dart +++ b/packages/build_menu_flutter/lib/src/app_build_menu.dart @@ -133,7 +133,7 @@ void menuFlutterAppContent( if (!supported) { write('flutter not supported'); var response = await prompt('Continue Y/N'); - if (response?.toLowerCase() == 'y') { + if (response.toLowerCase() == 'y') { return true; } } @@ -270,8 +270,8 @@ void menuFlutterAppContent( }); item('prompt', () async { var command = await prompt('Enter command'); - if (command?.isNotEmpty ?? false) { - await appShell.run(command!); + if (command.isNotEmpty) { + await appShell.run(command); } }); }