From c2792e9c7a33520e39aae9c9616181ca53db67b5 Mon Sep 17 00:00:00 2001 From: Ahn-seokjoo Date: Fri, 20 Sep 2024 00:31:32 +0900 Subject: [PATCH] =?UTF-8?q?[refactoring]=20=EB=84=A4=EC=9D=B4=EB=B0=8D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../classification/ClassificationViewModel.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/feature/classification/src/main/java/com/mashup/feature/classification/ClassificationViewModel.kt b/feature/classification/src/main/java/com/mashup/feature/classification/ClassificationViewModel.kt index 3f62ad3b..6a56358e 100644 --- a/feature/classification/src/main/java/com/mashup/feature/classification/ClassificationViewModel.kt +++ b/feature/classification/src/main/java/com/mashup/feature/classification/ClassificationViewModel.kt @@ -166,9 +166,9 @@ class ClassificationViewModel @Inject constructor( state.copy(isLoading = true) } } - val allMove = moveAllPostUseCase.invoke(suggestionFolderId = folderId) + val allMoveItem = moveAllPostUseCase.invoke(suggestionFolderId = folderId) - if (allMove.isSuccess) { + if (allMoveItem.isSuccess) { getInitialData() } }.invokeOnCompletion { @@ -184,12 +184,12 @@ class ClassificationViewModel @Inject constructor( isLoading = true, ) } - val move = moveSinglePostUseCase.invoke( + val moveItem = moveSinglePostUseCase.invoke( postId = cardItem.postId, suggestionFolderId = cardItem.folderId, ) - if (move.isSuccess) { + if (moveItem.isSuccess) { val (chips, chipList) = updateChipList() val findCategory = chips.list.find { it.folderId == cardItem.folderId } @@ -227,8 +227,8 @@ class ClassificationViewModel @Inject constructor( isLoading = true, ) } - val delete = deletePostUseCase.invoke(cardItem.postId) - if (delete.isSuccess) { + val deleteItem = deletePostUseCase.invoke(cardItem.postId) + if (deleteItem.isSuccess) { val (chips, chipList) = updateChipList() val findCategory = chips.list.find { it.folderId == cardItem.folderId }