Skip to content

Commit

Permalink
text.isEmpty -> text.isBlank
Browse files Browse the repository at this point in the history
  • Loading branch information
cubewhy committed Jan 29, 2024
1 parent a2dd8a4 commit 97bab43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class SearchableList<T>(private val model: DefaultListModel<T>, baseList: JList<

private fun search(text: String) {
isInternalChange = true
if (text.isEmpty()) {
if (text.isBlank()) {
model.removeAllElements()
model.addAll(list)
isInternalChange = false
Expand Down

0 comments on commit 97bab43

Please sign in to comment.