removed extra condition in paginator

This commit is contained in:
stanislav 2020-09-09 12:46:29 +03:00 committed by Stanisalv
parent 23c8a987c1
commit f2c972d69f
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class Paginator<Item>(
}
}
is State.NewPageProgress<*> -> {
if (items.isEmpty() || items.size < pageSize) {
if (items.size < pageSize) {
State.FullData(currentState.pageCount, currentState.data)
} else {
State.Data(currentState.pageCount + 1, currentState.data + items)