minor code style update

This commit is contained in:
Tibor Kaputa 2021-09-24 17:58:28 +02:00 committed by GitHub
parent 516131787c
commit 03ff16f633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,15 +243,13 @@ class ConversationsAdapter(
private fun pinConversation(pin: Boolean) {
val conversations = getSelectedItems()
if (conversations.size == 0) {
if (conversations.isEmpty()) {
return
}
if (pin) {
activity.config.addPinnedConversations(conversations)
}
else {
} else {
activity.config.removePinnedConversations(conversations)
}