diff --git a/app/src/main/java/io/github/mattpvaughn/chronicle/features/home/HomeViewModel.kt b/app/src/main/java/io/github/mattpvaughn/chronicle/features/home/HomeViewModel.kt index 773a570..ccd9a70 100644 --- a/app/src/main/java/io/github/mattpvaughn/chronicle/features/home/HomeViewModel.kt +++ b/app/src/main/java/io/github/mattpvaughn/chronicle/features/home/HomeViewModel.kt @@ -140,11 +140,9 @@ class HomeViewModel( if (query.isEmpty()) { _searchResults.postValue(emptyList()) } else { - bookRepository.search(query).observeOnce( - Observer { - _searchResults.postValue(it) - } - ) + bookRepository.search(query).observeOnce { + _searchResults.postValue(it) + } } }