From c291ec55d6202cee14a84a5dab1de9cf15b912af Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Tue, 24 Aug 2021 12:25:07 -0700 Subject: [PATCH] Eliminate unnecessary null check in fixture (flutter/engine#28281) The type of `PlatformDispatcher.instance.locales` is `List`, which precludes either null list or a null value in the list, for that matter. --- engine/src/flutter/shell/platform/embedder/fixtures/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/embedder/fixtures/main.dart b/engine/src/flutter/shell/platform/embedder/fixtures/main.dart index 5866aa0a09..f1f8ca51a7 100644 --- a/engine/src/flutter/shell/platform/embedder/fixtures/main.dart +++ b/engine/src/flutter/shell/platform/embedder/fixtures/main.dart @@ -677,7 +677,7 @@ void can_display_platform_view_with_pixel_ratio() { @pragma('vm:entry-point') void can_receive_locale_updates() { PlatformDispatcher.instance.onLocaleChanged = (){ - signalNativeCount(PlatformDispatcher.instance.locales!.length); + signalNativeCount(PlatformDispatcher.instance.locales.length); }; signalNativeTest(); }