From 20ebe4e095169f687949f680e4c52bd1b760f6ef Mon Sep 17 00:00:00 2001 From: jeongjaino Date: Sat, 1 Feb 2025 01:04:02 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE]#218=20:=20reduce=20=EA=B5=AC=EB=AC=B8?= =?UTF-8?q?=20=EB=82=B4=20=EA=B3=B5=EB=B0=B1=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/kotlin/com/bff/wespot/viewmodel/MainViewModel.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/bff/wespot/viewmodel/MainViewModel.kt b/app/src/main/kotlin/com/bff/wespot/viewmodel/MainViewModel.kt index 5a2fab17..a868e03a 100644 --- a/app/src/main/kotlin/com/bff/wespot/viewmodel/MainViewModel.kt +++ b/app/src/main/kotlin/com/bff/wespot/viewmodel/MainViewModel.kt @@ -118,7 +118,7 @@ class MainViewModel @Inject constructor( when (result) { VersionCompareResult.MAJOR_VERSION_UPDATE -> { if (isVersionMatchCachedVersion(latestVersion).not()) { - reduce { state.copy(versionUpdateType = VersionUpdateType.NEW_FEATURE_ADDED)} + reduce { state.copy(versionUpdateType = VersionUpdateType.NEW_FEATURE_ADDED) } postSideEffect(MainSideEffect.ShowVersionUpdateDialog) } } @@ -130,7 +130,7 @@ class MainViewModel @Inject constructor( .fetchFromRemoteConfig(RemoteConfigKey.VERSION_UPDATE_TYPE) val versionUpdateType = VersionUpdateType.convertVersionUpdateType(versionUpdateTypeString) - reduce { state.copy(versionUpdateType = versionUpdateType)} + reduce { state.copy(versionUpdateType = versionUpdateType) } postSideEffect(MainSideEffect.ShowVersionUpdateDialog) } } @@ -198,7 +198,7 @@ class MainViewModel @Inject constructor( postSideEffect(MainSideEffect.ShowFeatureOverviewDialog) } NotificationType.UPDATE_REQUIRED -> { - reduce { state.copy(versionUpdateType = VersionUpdateType.NEW_FEATURE_ADDED)} + reduce { state.copy(versionUpdateType = VersionUpdateType.NEW_FEATURE_ADDED) } postSideEffect(MainSideEffect.ShowVersionUpdateDialog) } NotificationType.IDLE -> { }