Unverified Commit ccdf078f authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Fix return types of commands that override verifyThenRunCommand (#19483)

Fixes https://github.com/flutter/flutter/issues/19465
parent 85f09f62
...@@ -29,7 +29,7 @@ class LogsCommand extends FlutterCommand { ...@@ -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 { ...@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment