From 33842eac5d6a3e1acb1ff2216daac4ae0ca1073d Mon Sep 17 00:00:00 2001 From: jinukeu Date: Tue, 30 Jan 2024 15:03:27 +0900 Subject: [PATCH] chore: ktlint, detekt --- .../susu/domain/usecase/envelope/CreateSentEnvelopeUseCase.kt | 2 +- .../java/com/susu/feature/envelopeadd/EnvelopeAddViewModel.kt | 4 ++-- .../com/susu/feature/envelopeadd/content/more/MoreContract.kt | 2 -- .../susu/feature/envelopeadd/content/name/NameViewModel.kt | 1 - 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/domain/src/main/java/com/susu/domain/usecase/envelope/CreateSentEnvelopeUseCase.kt b/domain/src/main/java/com/susu/domain/usecase/envelope/CreateSentEnvelopeUseCase.kt index 8803d238..52b91329 100644 --- a/domain/src/main/java/com/susu/domain/usecase/envelope/CreateSentEnvelopeUseCase.kt +++ b/domain/src/main/java/com/susu/domain/usecase/envelope/CreateSentEnvelopeUseCase.kt @@ -29,7 +29,7 @@ class CreateSentEnvelopeUseCase @Inject constructor( hasVisited = hasVisited, handedOverAt = handedOverAt, categoryId = category.id.toLong(), - customCategory = category.customCategory + customCategory = category.customCategory, ) } } diff --git a/feature/sent/src/main/java/com/susu/feature/envelopeadd/EnvelopeAddViewModel.kt b/feature/sent/src/main/java/com/susu/feature/envelopeadd/EnvelopeAddViewModel.kt index 7ce3e6f9..69cd8033 100644 --- a/feature/sent/src/main/java/com/susu/feature/envelopeadd/EnvelopeAddViewModel.kt +++ b/feature/sent/src/main/java/com/susu/feature/envelopeadd/EnvelopeAddViewModel.kt @@ -42,8 +42,8 @@ class EnvelopeAddViewModel @Inject constructor( memo = memo, handedOverAt = date!!.toKotlinLocalDateTime(), hasVisited = hasVisited, - category = category!! - ) + category = category!!, + ), ).onSuccess { postSideEffect(EnvelopeAddEffect.PopBackStack) }.onFailure { diff --git a/feature/sent/src/main/java/com/susu/feature/envelopeadd/content/more/MoreContract.kt b/feature/sent/src/main/java/com/susu/feature/envelopeadd/content/more/MoreContract.kt index 4de112a8..17a05c02 100644 --- a/feature/sent/src/main/java/com/susu/feature/envelopeadd/content/more/MoreContract.kt +++ b/feature/sent/src/main/java/com/susu/feature/envelopeadd/content/more/MoreContract.kt @@ -1,6 +1,5 @@ package com.susu.feature.envelopeadd.content.more -import androidx.annotation.StringRes import com.susu.core.ui.base.SideEffect import com.susu.core.ui.base.UiState import com.susu.feature.envelopeadd.EnvelopeAddStep @@ -23,4 +22,3 @@ val moreStep = persistentMapOf( sealed interface MoreSideEffect : SideEffect { data class UpdateParentMoreStep(val moreStep: List) : MoreSideEffect } - diff --git a/feature/sent/src/main/java/com/susu/feature/envelopeadd/content/name/NameViewModel.kt b/feature/sent/src/main/java/com/susu/feature/envelopeadd/content/name/NameViewModel.kt index 5762d476..c80cb546 100644 --- a/feature/sent/src/main/java/com/susu/feature/envelopeadd/content/name/NameViewModel.kt +++ b/feature/sent/src/main/java/com/susu/feature/envelopeadd/content/name/NameViewModel.kt @@ -7,7 +7,6 @@ import com.susu.domain.usecase.friend.SearchFriendUseCase import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.collections.immutable.persistentListOf import kotlinx.collections.immutable.toPersistentList -import kotlinx.coroutines.delay import kotlinx.coroutines.launch import javax.inject.Inject