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

Fixes https://github.com/flutter/flutter/issues/19465
This commit is contained in:
Jason Simmons 2018-07-17 15:24:36 -07:00 committed by GitHub
parent 85f09f622e
commit ccdf078f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class LogsCommand extends FlutterCommand {
Device device;
@override
Future<Null> verifyThenRunCommand() async {
Future<FlutterCommandResult> verifyThenRunCommand() async {
device = await findTargetDevice();
if (device == null)
throwToolExit(null);

View File

@ -64,7 +64,7 @@ class ScreenshotCommand extends FlutterCommand {
Device device;
@override
Future<Null> verifyThenRunCommand() async {
Future<FlutterCommandResult> verifyThenRunCommand() async {
device = await findTargetDevice();
if (device == null)
throwToolExit('Must have a connected device');