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 } }