Skip to content

Commit

Permalink
Refactor:[snsproject] ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoon-Chan committed Apr 27, 2024
1 parent 11618b5 commit 30f6356
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ class WritingViewModel
fun onItemClick(image: Image) =
intent {
reduce {
if (state.selectedImages.contains(image))
{
state.copy(selectedImages = state.selectedImages - image)
} else {
if (state.selectedImages.contains(image)) {
state.copy(selectedImages = state.selectedImages - image)
} else {
state.copy(selectedImages = state.selectedImages + image)
}
}
Expand Down

0 comments on commit 30f6356

Please sign in to comment.