Skip to content

Commit

Permalink
Use removeLastOrNull
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensousa committed Aug 30, 2024
1 parent d0503a8 commit 0296977
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class DpadTestAdapter(
}

fun removeItem() {
items.removeLast()
items.removeLastOrNull()
notifyItemRemoved(items.size)
}

Expand Down

0 comments on commit 0296977

Please sign in to comment.