Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Tidy up code
Browse files Browse the repository at this point in the history
  • Loading branch information
SanmerDev committed Nov 25, 2023
1 parent 9d3b3d3 commit 3d0a904
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class ModulesViewModel @Inject constructor(
}
}.filter { (_, m) ->
if (key.isBlank()) return@filter true
key.lowercase() in "${m.name},${m.author},${m.description}".lowercase()
key.lowercase() in (m.name + m.author + m.description).lowercase()

}.toMutableStateList()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class RepositoryViewModel @Inject constructor(
}
}.filter { (_, m) ->
if (key.isBlank()) return@filter true
key.lowercase() in "${m.name},${m.author},${m.description}".lowercase()
key.lowercase() in (m.name + m.author + m.description).lowercase()

}.toMutableStateList()

Expand Down

0 comments on commit 3d0a904

Please sign in to comment.