From 619898fae9beaee38c3fb5e9577e45c7abfcf086 Mon Sep 17 00:00:00 2001 From: Naveen Date: Tue, 10 Jan 2023 17:29:16 +0530 Subject: [PATCH] Remove all braces from when statement --- .../smsmessenger/messaging/MessagingUtils.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/messaging/MessagingUtils.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/messaging/MessagingUtils.kt index 9f0da6f1..3880ff25 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/messaging/MessagingUtils.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/messaging/MessagingUtils.kt @@ -177,9 +177,7 @@ class MessagingUtils(val context: Context) { when (resultCode) { SmsManager.RESULT_ERROR_NO_SERVICE -> context.getString(R.string.error_service_is_unavailable) SmsManager.RESULT_ERROR_RADIO_OFF -> context.getString(R.string.error_radio_turned_off) - else -> { - context.getString(R.string.unknown_error_occurred_sending_message, resultCode) - } + else -> context.getString(R.string.unknown_error_occurred_sending_message, resultCode) } } context.toast(msg = msgId, length = Toast.LENGTH_LONG)