mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-12-21 22:28:15 -05:00
Minor tweaks to use inline
This commit is contained in:
parent
b57b82677f
commit
5197d4acfc
@ -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
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user