Skip to content

Commit

Permalink
documentation and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
seelchen committed Jan 12, 2024
1 parent 46d5628 commit d9a3f38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ class DeepSearch(
)
)
// level 2
if (!isMatchesEnabled) searchRegExFind(file, pattern) else searchRegExMatch(
file,
pattern
)
if (!isMatchesEnabled) {
searchRegExFind(file, pattern)
} else {
searchRegExMatch(file, pattern)
}
}
}

Expand Down Expand Up @@ -175,7 +176,7 @@ class DeepSearch(
}

fun interface SearchFilter {
/** Returns if the file with [fileName] as name should fulfills some predicate */
/** Returns if the file with the given [fileName] fulfills some predicate */
fun searchFilter(fileName: String): Boolean
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class MainActivityViewModel(val applicationContext: Application) :
}

/**
* Perform deep search: recursively search for
* Perform deep search: search recursively for files matching [query] in the current path
*/
fun deepSearch(
mainActivity: MainActivity,
Expand Down

0 comments on commit d9a3f38

Please sign in to comment.