Remove unnecessary null checks in dev/*_tests (#118844)

This commit is contained in:
Michael Goderbauer
2023-01-20 17:36:12 -08:00
committed by GitHub
parent 25843bdb5a
commit 70cecf6c9e
6 changed files with 6 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ const List<AndroidSemanticsAction> ignoredAccessibilityFocusActions = <AndroidSe
];
String adbPath() {
final String androidHome = io.Platform.environment['ANDROID_HOME'] ?? io.Platform.environment['ANDROID_SDK_ROOT']!;
final String? androidHome = io.Platform.environment['ANDROID_HOME'] ?? io.Platform.environment['ANDROID_SDK_ROOT'];
if (androidHome == null) {
return 'adb';
} else {