From 8a41ebcb2928c4bb36d219e11faad4271ed2a640 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Mon, 6 Jan 2025 15:03:32 +0100 Subject: [PATCH] removed redundant default cases --- lib/data/models/metering_screen_layout_config.dart | 4 +--- .../components/camera_container/bloc_container_camera.dart | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/data/models/metering_screen_layout_config.dart b/lib/data/models/metering_screen_layout_config.dart index a558202..64bc60c 100644 --- a/lib/data/models/metering_screen_layout_config.dart +++ b/lib/data/models/metering_screen_layout_config.dart @@ -8,7 +8,7 @@ typedef MeteringScreenLayoutConfig = Map; extension MeteringScreenLayoutConfigJson on MeteringScreenLayoutConfig { static MeteringScreenLayoutConfig fromJson(Map data) { - int? migratedIndex(MeteringScreenLayoutFeature feature) { + int migratedIndex(MeteringScreenLayoutFeature feature) { switch (feature) { case MeteringScreenLayoutFeature.extremeExposurePairs: return 0; @@ -16,8 +16,6 @@ extension MeteringScreenLayoutConfigJson on MeteringScreenLayoutConfig { return 1; case MeteringScreenLayoutFeature.equipmentProfiles: return 3; - default: - return null; } } diff --git a/lib/screens/metering/components/camera_container/bloc_container_camera.dart b/lib/screens/metering/components/camera_container/bloc_container_camera.dart index 08bfee4..fd81b68 100644 --- a/lib/screens/metering/components/camera_container/bloc_container_camera.dart +++ b/lib/screens/metering/components/camera_container/bloc_container_camera.dart @@ -91,7 +91,6 @@ class CameraContainerBloc extends EvSourceBlocBase