Skip to content

Commit

Permalink
Use addLast in replaceLines
Browse files Browse the repository at this point in the history
This makes sure that lines are only added through the Lines.addLast()
interface.
  • Loading branch information
jspricke committed Jun 16, 2021
1 parent c26a1e9 commit 6ee35b2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ class Lines {
if (status != Status.Fetching) return
unfiltered.clear()
filtered.clear()
unfiltered.addAll(lines)
for (line in lines) {
if (line.isVisible) filtered.add(line)
addLast(line)
}
}

Expand Down

0 comments on commit 6ee35b2

Please sign in to comment.