From 774ccb1ddcfa6d6b22328c11102997a3e4bb961b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 8 Feb 2026 09:11:59 -0800 Subject: [PATCH] Remove unnecessary breaks --- lib/configuration_service.dart | 3 --- lib/geolocation_service.dart | 4 ---- 2 files changed, 7 deletions(-) diff --git a/lib/configuration_service.dart b/lib/configuration_service.dart index a3c34ea..f69eee0 100644 --- a/lib/configuration_service.dart +++ b/lib/configuration_service.dart @@ -52,12 +52,9 @@ class ConfigurationService { switch (value) { case 'false': await Preferences.instance.setBool(key, false); - break; case 'true': await Preferences.instance.setBool(key, true); - break; } } } } - diff --git a/lib/geolocation_service.dart b/lib/geolocation_service.dart index af9624e..5f26518 100644 --- a/lib/geolocation_service.dart +++ b/lib/geolocation_service.dart @@ -122,15 +122,11 @@ void headlessTask(bg.HeadlessEvent headlessEvent) async { switch (headlessEvent.name) { case bg.Event.ENABLEDCHANGE: await GeolocationService.onEnabledChange(headlessEvent.event); - break; case bg.Event.MOTIONCHANGE: await GeolocationService.onMotionChange(headlessEvent.event); - break; case bg.Event.HEARTBEAT: await GeolocationService.onHeartbeat(headlessEvent.event); - break; case bg.Event.LOCATION: await GeolocationService.onLocation(headlessEvent.event); - break; } }