Migrate core devicelab tasks a-f null safety. (#85996)

This commit is contained in:
Darren Austin
2021-07-11 20:32:38 -07:00
committed by GitHub
parent 2175e64e4f
commit 9d3563a8ea
58 changed files with 10 additions and 126 deletions

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import 'dart:io';
import 'package:flutter_devicelab/framework/apk_utils.dart';
@@ -20,7 +18,7 @@ Future<void> main() async {
await task(() async {
section('Find Java');
final String javaHome = await findJavaHome();
final String? javaHome = await findJavaHome();
if (javaHome == null)
return TaskResult.failure('Could not find Java');
print('\nUsing JAVA_HOME=$javaHome');