use null aware operators (#32711)

* use null aware operators

* rollback changes about null-aware operator

* disable lint prefer_is_not_empty
This commit is contained in:
Alexandre Ardhuin
2019-05-16 22:25:51 +02:00
committed by GitHub
parent 3c16cf6a74
commit 4fa32df141
17 changed files with 31 additions and 39 deletions

View File

@@ -470,10 +470,7 @@ class IosDevice implements Device {
/// Path to the `adb` executable.
String get adbPath {
final String androidHome =
Platform.environment['ANDROID_HOME'] != null
? Platform.environment['ANDROID_HOME']
: Platform.environment['ANDROID_SDK_ROOT'];
final String androidHome = Platform.environment['ANDROID_HOME'] ?? Platform.environment['ANDROID_SDK_ROOT'];
if (androidHome == null)
throw 'The ANDROID_SDK_ROOT and ANDROID_HOME environment variables are '