Eliminate unnecessary null check in fixture (flutter/engine#28281)

The type of `PlatformDispatcher.instance.locales` is `List<Locale>`,
which precludes either null list or a null value in the list, for that
matter.
This commit is contained in:
Chris Bracken
2021-08-24 12:25:07 -07:00
committed by GitHub
parent 5a83168d9f
commit c291ec55d6

View File

@@ -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();
}