Skip to content

Commit 619898f

Browse files
committed
Remove all braces from when statement
1 parent b61782b commit 619898f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/src/main/kotlin/com/simplemobiletools/smsmessenger/messaging/MessagingUtils.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,7 @@ class MessagingUtils(val context: Context) {
177177
when (resultCode) {
178178
SmsManager.RESULT_ERROR_NO_SERVICE -> context.getString(R.string.error_service_is_unavailable)
179179
SmsManager.RESULT_ERROR_RADIO_OFF -> context.getString(R.string.error_radio_turned_off)
180-
else -> {
181-
context.getString(R.string.unknown_error_occurred_sending_message, resultCode)
182-
}
180+
else -> context.getString(R.string.unknown_error_occurred_sending_message, resultCode)
183181
}
184182
}
185183
context.toast(msg = msgId, length = Toast.LENGTH_LONG)

0 commit comments

Comments
 (0)