Minor tweaks to use inline

This commit is contained in:
Bradlee Speice 2015-01-31 14:34:44 -05:00
parent b57b82677f
commit 5197d4acfc

View File

@ -21,9 +21,9 @@ class SearchProvider(val b: Book, val indexManager: IndexManager) {
return listOf() return listOf()
} }
val searchText = defaultSearchType.decorate(text) val searchText = defaultSearchType decorate text
val results = b.find(searchText) val results = b find searchText
return results.map { it as Verse } 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 * seem to register itself properly in the book metadata
*/ */
public fun isSearchAvailable(): Boolean = public fun isSearchAvailable(): Boolean =
indexManager.isIndexed(b) indexManager isIndexed b
} }