From 5197d4acfc5ab9a6b7f748ab49def12aee5e46f7 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Sat, 31 Jan 2015 14:34:44 -0500 Subject: [PATCH] Minor tweaks to use inline --- .../minimalbible/activity/search/SearchProvider.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/org/bspeice/minimalbible/activity/search/SearchProvider.kt b/app/src/main/kotlin/org/bspeice/minimalbible/activity/search/SearchProvider.kt index 13d26f5..aba70da 100644 --- a/app/src/main/kotlin/org/bspeice/minimalbible/activity/search/SearchProvider.kt +++ b/app/src/main/kotlin/org/bspeice/minimalbible/activity/search/SearchProvider.kt @@ -21,9 +21,9 @@ class SearchProvider(val b: Book, val indexManager: IndexManager) { return listOf() } - val searchText = defaultSearchType.decorate(text) - val results = b.find(searchText) - return results.map { it as Verse } + val searchText = defaultSearchType decorate text + val results = b find searchText + return results map { it as Verse } } /** @@ -31,6 +31,6 @@ class SearchProvider(val b: Book, val indexManager: IndexManager) { * seem to register itself properly in the book metadata */ public fun isSearchAvailable(): Boolean = - indexManager.isIndexed(b) + indexManager isIndexed b }