Skip to content

Commit

Permalink
detekt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Garzas committed Oct 4, 2023
1 parent 053c769 commit d36b95a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,14 @@ class ConversationListViewModel @Inject constructor(
when (update) {
is SearchQueryUpdate.UpdateQuery -> currentSearchQuery.copy(text = update.text)
is SearchQueryUpdate.UpdateConversationsSource -> {
if (currentSearchQuery.source != update.source)
if (currentSearchQuery.source != update.source) {
currentSearchQuery.copy(
text = "",
source = update.source
)
else currentSearchQuery
} else {
currentSearchQuery

Check warning on line 142 in app/src/main/kotlin/com/wire/android/ui/home/conversationslist/ConversationListViewModel.kt

View check run for this annotation

Codecov / codecov/patch

app/src/main/kotlin/com/wire/android/ui/home/conversationslist/ConversationListViewModel.kt#L142

Added line #L142 was not covered by tests
}
}
}
}
Expand Down

0 comments on commit d36b95a

Please sign in to comment.