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:
committed by
GitHub
parent
3c16cf6a74
commit
4fa32df141
@@ -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 '
|
||||
|
||||
Reference in New Issue
Block a user