Migrate the first 3rd of the devicelab tasks to null safety. (#86374)

This commit is contained in:
Darren Austin
2021-07-13 16:45:09 -07:00
committed by GitHub
parent 0c81077582
commit f6e5227b28
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');