Prefer void to null (#22977)
* Future<void> main * Future<void>.delayed * prefer_void_to_Null * address review comments
This commit is contained in:
committed by
GitHub
parent
5efe095895
commit
0fb84e96c7
@@ -42,7 +42,7 @@ class MakeHostAppEditableCommand extends FlutterCommand {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<Null> runCommand() async {
|
||||
Future<FlutterCommandResult> runCommand() async {
|
||||
await _project.ensureReadyForPlatformSpecificTooling();
|
||||
|
||||
final bool isAndroidRequested = argResults['android'];
|
||||
@@ -58,5 +58,7 @@ class MakeHostAppEditableCommand extends FlutterCommand {
|
||||
} else if (isIOSRequested) {
|
||||
await _project.ios.makeHostAppEditable();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user