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
1 changed files with 2 additions and 4 deletions

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)
}