From 0083b48476944146e57521c39551260540a9db8c Mon Sep 17 00:00:00 2001 From: Erik Eelde Date: Sat, 21 Sep 2024 23:45:11 +0200 Subject: [PATCH] Fix detekt --- .../toggles/booleanconfiguration/BooleanValueView.kt | 10 +++++----- .../toggles/configurations/ConfigurationViewModel.kt | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/booleanconfiguration/src/main/java/se/eelde/toggles/booleanconfiguration/BooleanValueView.kt b/modules/booleanconfiguration/src/main/java/se/eelde/toggles/booleanconfiguration/BooleanValueView.kt index 6f92aa4f..e1418985 100644 --- a/modules/booleanconfiguration/src/main/java/se/eelde/toggles/booleanconfiguration/BooleanValueView.kt +++ b/modules/booleanconfiguration/src/main/java/se/eelde/toggles/booleanconfiguration/BooleanValueView.kt @@ -28,7 +28,6 @@ import androidx.hilt.navigation.compose.hiltViewModel import androidx.lifecycle.compose.collectAsStateWithLifecycle import kotlinx.coroutines.launch import se.eelde.toggles.routes.BooleanConfiguration -import se.eelde.toggles.routes.StringConfiguration @SuppressLint("ComposeViewModelInjection") @Composable @@ -84,9 +83,11 @@ fun BooleanValueView( }, ) { paddingValues -> val scope = rememberCoroutineScope() - Surface(modifier = modifier - .padding(paddingValues) - .padding(16.dp)) { + Surface( + modifier = modifier + .padding(paddingValues) + .padding(16.dp) + ) { Column { Text( modifier = Modifier.padding(8.dp), @@ -126,4 +127,3 @@ fun BooleanValueView( } } } - diff --git a/modules/configurations/src/main/java/se/eelde/toggles/configurations/ConfigurationViewModel.kt b/modules/configurations/src/main/java/se/eelde/toggles/configurations/ConfigurationViewModel.kt index ac76baf5..4308ff13 100644 --- a/modules/configurations/src/main/java/se/eelde/toggles/configurations/ConfigurationViewModel.kt +++ b/modules/configurations/src/main/java/se/eelde/toggles/configurations/ConfigurationViewModel.kt @@ -26,7 +26,6 @@ import se.eelde.toggles.database.WrenchScope import se.eelde.toggles.database.dao.application.TogglesApplicationDao import se.eelde.toggles.database.dao.application.TogglesConfigurationDao import se.eelde.toggles.database.dao.application.TogglesScopeDao -import javax.inject.Inject internal data class ViewState( val application: WrenchApplication? = null,