mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Fix return types of commands that override verifyThenRunCommand (#19483)
Fixes https://github.com/flutter/flutter/issues/19465
This commit is contained in:
parent
85f09f622e
commit
ccdf078f98
@ -29,7 +29,7 @@ class LogsCommand extends FlutterCommand {
|
|||||||
Device device;
|
Device device;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<Null> verifyThenRunCommand() async {
|
Future<FlutterCommandResult> verifyThenRunCommand() async {
|
||||||
device = await findTargetDevice();
|
device = await findTargetDevice();
|
||||||
if (device == null)
|
if (device == null)
|
||||||
throwToolExit(null);
|
throwToolExit(null);
|
||||||
|
@ -64,7 +64,7 @@ class ScreenshotCommand extends FlutterCommand {
|
|||||||
Device device;
|
Device device;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<Null> verifyThenRunCommand() async {
|
Future<FlutterCommandResult> verifyThenRunCommand() async {
|
||||||
device = await findTargetDevice();
|
device = await findTargetDevice();
|
||||||
if (device == null)
|
if (device == null)
|
||||||
throwToolExit('Must have a connected device');
|
throwToolExit('Must have a connected device');
|
||||||
|
Loading…
Reference in New Issue
Block a user