Remove unnecessary null checks in dev/*_tests (#118844)
This commit is contained in:
committed by
GitHub
parent
25843bdb5a
commit
70cecf6c9e
@@ -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 {
|
||||
|
||||
@@ -19,7 +19,7 @@ class AndroidPlatformView extends StatelessWidget {
|
||||
this.onPlatformViewCreated,
|
||||
this.useHybridComposition = false,
|
||||
required this.viewType,
|
||||
}) : assert(viewType != null);
|
||||
});
|
||||
|
||||
/// The unique identifier for the view type to be embedded by this widget.
|
||||
///
|
||||
|
||||
@@ -99,7 +99,7 @@ class TestUrlStrategy extends UrlStrategy {
|
||||
@override
|
||||
void replaceState(dynamic state, String title, String url) {
|
||||
assert(withinAppHistory);
|
||||
if (url == null || url == '') {
|
||||
if (url == '') {
|
||||
url = currentEntry.url;
|
||||
}
|
||||
currentEntry = TestHistoryEntry(state, title, url);
|
||||
|
||||
Reference in New Issue
Block a user