Skip to content

Commit 8538e99

Browse files
committed
fix: replace removeFirst()/removeLast() with removeAt()
1 parent f04b620 commit 8538e99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/org/fossify/notes/models/TextHistory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class TextHistory {
2626

2727
fun add(item: TextHistoryItem) {
2828
while (history.size > position) {
29-
history.removeLast()
29+
history.removeAt(history.lastIndex)
3030
}
3131

3232
history.add(item)

0 commit comments

Comments
 (0)