Skip to content

Commit 4c3657c

Browse files
committed
notif [nfc]: Cut a redundant "it.let"
When the argument here was nullable, "it?.let" served a useful purpose; but now that it's not, this can be cut out for a small simplification.
1 parent 16fe7ce commit 4c3657c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/app/src/main/kotlin/com/zulip/flutter/ZulipPlugin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,13 @@ private class AndroidNotificationHost(val context: Context)
221221
val style = NotificationCompat.MessagingStyle(toAndroidPerson(messagingStyle.user))
222222
.setConversationTitle(messagingStyle.conversationTitle)
223223
.setGroupConversation(messagingStyle.isGroupConversation)
224-
messagingStyle.messages.forEach { it.let {
224+
messagingStyle.messages.forEach {
225225
style.addMessage(NotificationCompat.MessagingStyle.Message(
226226
it.text,
227227
it.timestampMs,
228228
toAndroidPerson(it.person),
229229
))
230-
} }
230+
}
231231
setStyle(style)
232232
}
233233
number?.let { setNumber(it.toInt()) }

0 commit comments

Comments
 (0)