From e8bcb86a0f100dd3a6f317723773cbc1137208be Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Tue, 24 Aug 2021 11:06:22 -0700 Subject: [PATCH] Eliminate unnecessary null check in fixture The type of `PlatformDispatcher.instance.locales` is `List`, which precludes either null list or a null value in the list, for that matter. --- shell/platform/embedder/fixtures/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/platform/embedder/fixtures/main.dart b/shell/platform/embedder/fixtures/main.dart index 5866aa0a09eb9..f1f8ca51a7093 100644 --- a/shell/platform/embedder/fixtures/main.dart +++ b/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(); }