Rename variable to `msg`

This commit is contained in:
Naveen 2023-01-10 17:32:38 +05:30
parent 619898fae9
commit f24c88eac7
1 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ class MessagingUtils(val context: Context) {
fun maybeShowErrorToast(resultCode: Int, errorCode: Int) { fun maybeShowErrorToast(resultCode: Int, errorCode: Int) {
if (resultCode != Activity.RESULT_OK) { if (resultCode != Activity.RESULT_OK) {
val msgId = if (errorCode != SendStatusReceiver.NO_ERROR_CODE) { val msg = if (errorCode != SendStatusReceiver.NO_ERROR_CODE) {
context.getString(R.string.carrier_send_error) context.getString(R.string.carrier_send_error)
} else { } else {
when (resultCode) { when (resultCode) {
@ -180,7 +180,7 @@ class MessagingUtils(val context: Context) {
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) context.toast(msg = msg, length = Toast.LENGTH_LONG)
} else { } else {
// no-op // no-op
} }