From 2b47e901814299e27318a191a9a11f541823cd90 Mon Sep 17 00:00:00 2001 From: Jihye Joo Date: Sun, 29 Sep 2024 08:51:32 +0900 Subject: [PATCH] =?UTF-8?q?:art:=20#287=20mapErrorMessageRes=20=EA=B0=84?= =?UTF-8?q?=EA=B2=B0=ED=95=98=EA=B2=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/invitation/InvitationCodeViewModel.kt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/presentation/src/main/java/com/mashup/gabbangzip/sharedalbum/presentation/ui/invitation/InvitationCodeViewModel.kt b/presentation/src/main/java/com/mashup/gabbangzip/sharedalbum/presentation/ui/invitation/InvitationCodeViewModel.kt index 8079a2ab..d4824377 100644 --- a/presentation/src/main/java/com/mashup/gabbangzip/sharedalbum/presentation/ui/invitation/InvitationCodeViewModel.kt +++ b/presentation/src/main/java/com/mashup/gabbangzip/sharedalbum/presentation/ui/invitation/InvitationCodeViewModel.kt @@ -50,14 +50,8 @@ class InvitationCodeViewModel @Inject constructor( private fun mapErrorMessageRes(e: Throwable): Int { return when (e) { - is PicException.InvalidGroupCodeException -> { - R.string.enter_group_by_code_failure_not_found - } - - is PicException.GroupOverflowException -> { - R.string.enter_group_by_code_failure_overflow - } - + is PicException.InvalidGroupCodeException -> R.string.enter_group_by_code_failure_not_found + is PicException.GroupOverflowException -> R.string.enter_group_by_code_failure_overflow else -> R.string.error_network } }